Dynamic access to current branch name with the current_branch function |
---|
git pull origin $(current_branch) |
grb publish $(current_branch) origin |
Alias | Command |
---|---|
g | git |
Atom settings synchronization |
import {BrowserXhr, HTTP_PROVIDERS} from "angular2/http"; | |
import {Injectable, provide} from "angular2/core"; | |
@Injectable() | |
class CORSBrowserXHR extends BrowserXhr{ | |
build(): any{ | |
var xhr:any = super.build(); | |
xhr.withCredentials = true; | |
return xhr; | |
} |
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |
const path = require('path'); | |
/* | |
* Webpack Plugins | |
*/ | |
// const webpack = require('webpack'); | |
// const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
module.exports = { |
/* | |
* jQuery ScrollSpy Plugin | |
* Author: @sxalexander, softwarespot | |
* Licensed under the MIT license | |
*/ | |
import $ from 'jquery'; | |
export default class Scrollspy { | |
constructor() { |
// Array literal (= []) is faster than Array constructor (new Array()) | |
// http://jsperf.com/new-array-vs-literal/15 | |
var array = []; | |
// Object literal (={}) is faster than Object constructor (new Object()) | |
// http://jsperf.com/new-array-vs-literal/26 | |
var obj = {}; | |
// property === undefined is faster than hasOwnProperty(property) | |
// http://jsperf.com/hasownproperty-vs-in-vs-undefined/17 |
export class Hsva { | |
constructor(public h: number, public s: number, public v: number, public a: number) { } | |
} | |
export class Hsla { | |
constructor(public h: number, public s: number, public l: number, public a: number) { } | |
} | |
export class Rgba { | |
constructor(public r: number, public g: number, public b: number, public a: number) { } | |
} | |
export class SliderPosition { |
html{height:100%;} | |
body{ | |
background: #232323; | |
width: 100%; | |
height: 100%; | |
padding: 0px; | |
margin: 0px; | |
} | |
.wrapper{position:relative; |