This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Background | |
| If you don't want to remember this each tiem you could also integrate a | |
| change for hooks/prepare-commit-msg in a manner like | |
| https://gist.github.com/bartoszmajsak/1396344#file-prepare-commit-msg-sh | |
| or | |
| https://bitbucket.org/tpettersen/prepare-commit-msg-jira | |
| This could then be used in conjunction with a hook/commit-msg that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LIB=${HOME}/lib | |
| BIN=${HOME}/bin | |
| # Install Protocol Buffers | |
| wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 | |
| tar -xf protobuf-2.4.1.tar.bz2 | |
| cd protobuf-2.4.1 | |
| ./configure --prefix=${HOME} | |
| make | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Make a static clone the working copy of a Jenkins build | |
| # to a public directory for browser testing. | |
| # Usage: | |
| # From within the Jenkins working copy directory. | |
| # | |
| # version 3 (2012-06-07) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Make a static clone the working copy of a Jenkins build | |
| # to a public directory for browser testing. | |
| # Also cleans clones older than 14 days | |
| # | |
| # Parameters: | |
| # $1: Publish target (absolute path, without "$1") | |
| # $2: ID to use for the static clone directory | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function makeRequest(url, method) { | |
| var xhr; | |
| if (typeof XMLHttpRequest === "undefined") { | |
| return null; | |
| } | |
| xhr = new XMLHttpRequest(); | |
| if ("withCredentials" in xhr) { | |
| xhr.open(method, url, true); | |
| return xhr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns clojuredojo.core) | |
| (defn palindrome-detector [thing] (= (reverse thing) (seq thing)) ) | |
| (def __ palindrome-detector) | |
| (false? (__ '(1 2 3 4 5))) | |
| (true? (__ "racecar")) | |
| (true? (__ [:foo :bar :foo])) | |
| (true? (__ '(1 1 3 3 1 1))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Person = function(name) { | |
| this.name = name; | |
| } | |
| Person.prototype.sayHello = function() { | |
| console.log('Hello, my name is ' + this.name); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1: how could you rewrite the following to make it shorter? | |
| if (foo) { | |
| bar.doSomething(el); | |
| } else { | |
| bar.doSomethingElse(el); | |
| } | |
NewerOlder