Skip to content

Instantly share code, notes, and snippets.

View Teknologica's full-sized avatar
🏠
VueJS all the things

Andrei Teknologica

🏠
VueJS all the things
View GitHub Profile
@Teknologica
Teknologica / form.php
Last active August 3, 2018 20:08
Rebilly JS Token Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Checkout Page</title>
</head>
<body>
<form>
<fieldset>
<legend>Payment Card</legend>
@Teknologica
Teknologica / rebilly-signature-es6.js
Last active October 11, 2017 18:22
Sample code for generating an Authentication Signature for Rebilly in Javascript ES6 with Babel
/**
* ES6 via Babel
* See https://github.com/dankogai/js-base64 for Base64
*/
import jsBase64 from 'js-base64';
import crypto from 'crypto';
const randomString = (strLength) => {
let text = '';
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
@Teknologica
Teknologica / rebilly-signature-es5.js
Created July 29, 2016 15:27
Sample code for generating an Authentication Signature for Rebilly in Javascript ES5
/**
* ES5
* See https://github.com/dankogai/js-base64 for Base64
*/
var Base64 = require('js-base64').Base64;
var crypto = require('crypto');
var randomString = function (strLength) {
var text = "";
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
@Teknologica
Teknologica / squash.md
Created March 22, 2016 20:17
Squash Commits

##Squashing Commits

To squash four commits into one, do the following:

$ git rebase -i HEAD~4

In the text editor that comes up, replace the words "pick" with "squash" next to the commits you want to squash into the commit before it. Save and close the editor, and git will combine the "squash"'ed commits with the one before it. Git will then give you the opportunity to change your commit message to something like, "Issue #100: Fixed retweet bug."

var selGenre = $('<ul>');
for(i in genreList)
{
var g = genreList[i];
var o = document.createElement('li');
o.innerHTML(g.name);
selGenre[0].appendChild(o);
}