(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * Changes XML to JSON | |
| * Modified version from here: http://davidwalsh.name/convert-xml-json | |
| * @param {string} xml XML DOM tree | |
| */ | |
| function xmlToJson(xml) { | |
| // Create the return object | |
| var obj = {}; | |
| if (xml.nodeType == 1) { |
| # Let's try out a table with kramdown class tag | |
| | A simple | table | | |
| | with multiple | lines| | |
| {: .my-class } |
| package com.github.manuelpeinado.toolbartest; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.support.v7.widget.Toolbar; | |
| import android.view.Menu; | |
| import android.view.View; |
| package com.company; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.Mac; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.security.MessageDigest; | |
| import java.security.SecureRandom; | |
| public class Main { |
| module Jekyll | |
| class RenderImgTag < Liquid::Tag | |
| def initialize(tag_name, text, tokens) | |
| super | |
| @url , *@val= text.split(/ /) | |
| if @val.length > 0 | |
| @width , *@height = @val[0].split(/x/) | |
| end |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| /** | |
| * Converts an image to a dataURL | |
| * @param {String} src The src of the image | |
| * @param {Function} callback | |
| * @param {String} outputFormat [outputFormat='image/png'] | |
| * @url https://gist.github.com/HaNdTriX/7704632/ | |
| * @docs https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement#Methods | |
| * @author HaNdTriX | |
| * @example | |
| * |
First get to the existing directory
$ cd my/folder/
Now start a new git repository
$ git init
Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
$ vim .gitignore
When ready create the first commit on the server