This file contains 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
git config --add svn-remote.BRANCHNAME.url https://svn/path_to_newbranch/ | |
git config --add svn-remote.BRANCHNAME.fetch :refs/remotes/BRANCHNAME | |
git svn fetch BRANCHNAME |
This file contains 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
#Created a github repository called trashhalo.github.com | |
mkdir trashhalo.github.com | |
cd trashhalo.github.com | |
git init | |
git remote add octopress git://github.com/imathis/octopress.git | |
git symbolic-ref HEAD refs/heads/source | |
#Pulling all of octopress into source branch | |
git pull octopress | |
git merge octopress/master | |
git remote add origin [email protected]:trashhalo/trashhalo.github.com.git |
This file contains 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
import com.petebevin.markdown.MarkdownProcessor | |
import org.xhtmlrenderer.pdf.ITextRenderer | |
import org.ccil.cowan.tagsoup.Parser | |
import org.apache.xalan.xsltc.trax.SAX2DOM | |
import org.xml.sax.InputSource | |
buildscript{ | |
repositories { | |
mavenCentral() | |
mavenRepo urls: "http://scala-tools.org/repo-releases" |
This file contains 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
brew install p7zip | |
7z x file.7z |
This file contains 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
package{'curl': | |
ensure => 'present' | |
} | |
define remote-package($packagename=$title,$url,$creates){ | |
exec{"download-$packagename": | |
command=>"/usr/bin/curl -o /tmp/$packagename.deb $url", | |
creates=>$creates, | |
require=>Package['curl'] | |
} |
This file contains 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
define apt-update-single($repofile=$title,$source){ | |
file{"/etc/apt/sources.list.d/${repofile}.list": | |
ensure=>'present', | |
content=>$source, | |
} | |
exec{"apt-get-update-$repofile": | |
command=>"/usr/bin/apt-get update -o Dir::Etc::sourcelist=\"sources.list.d/${repofile}.list\" -o Dir::Etc::sourceparts=\"-\" -o APT::Get::List-Cleanup=\"0\"", | |
require=>File["/etc/apt/sources.list.d/${repofile}.list"], | |
unless=>"/bin/ls /var/lib/apt/lists/|grep $repofile 2>/dev/null" |
This file contains 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
'use strict'; | |
/** | |
* @license AngularJS v1.2.0 | |
* (c) 2010-2012 Google, Inc. http://angularjs.org | |
* License: MIT | |
* | |
* TODO(vojta): wrap whole file into closure during build | |
*/ |
This file contains 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(){ | |
function f(a){return function(){return this[a]}}function n(a){return function(){return a}}var r; | |
function s(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; | |
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}var aa="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b){null!=a&&this.append.apply(this,arguments)}da.prototype.ia="";da.prototype.append=function(a,b,c){this.ia+=a;if(null!=b)for(var d=1;d<arguments.length;d++)this.ia+=arguments[d];return this};da.prototype.toString=f("ia");function t(a){ |
This file contains 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() { | |
var Dancer = { | |
"start-dance": ["this"], | |
"stop-dance": ["this"] | |
}; | |
var DancerImpl = (function() { | |
var record = function(dancing) { | |
return this.dancing = dancing; | |
}; | |
record.prototype.$protocol = Dancer; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/hint/javascript-hint.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/javascript/javascript.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/edit/matchbrackets.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/addon/display/fullscreen.min.js"></script> |
OlderNewer