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
# Verifies the connectivity and validity of the objects in the database | |
git fsck —unreachable | |
# Manage reflog information | |
git reflog expire —expire=0 —all | |
# Pack unpacked objects in a repository | |
git repack -a -d -l | |
# Prune all unreachable objects from the object database |
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
var winston = require('winston'); | |
winston.cli(); | |
console.log('Winston at level %s', winston.level); | |
winston.level = 'warn'; | |
console.log('Winston at level %s', winston.level); |
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
// Usage: node p2p.js | |
var xml2object = require('xml2object'); // npm install xml2object | |
var filename = 'prosper.xml'; | |
// Create a parser to look for Loan objects in the xml file | |
var parser = new xml2object(filename, ['Loan']); | |
// Handle any errors |
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 requests = {}; | |
$(function(){ | |
// Determine which data you need and call the getData()... | |
// Stubbing in some example data... | |
// This is a unique request and would make an ajax call | |
getData({ | |
foo: 'bar' |
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 lang="en"> | |
<head> | |
<title>Test Execute Order</title> | |
</head> | |
<body> | |
<script src="//requirejs.org/docs/release/1.0.1/minified/require.js"></script> | |
<script> | |
require.config({ |
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
JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx1424m -XX:MaxPermSize=512m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"; export JAVA_OPTS; |
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
Homemade Bubbles: | |
1 1/2 quarts of water | |
1/2 cup light corn syrup | |
1 cup liquid dish soap | |
Add water and corn syrup and stir until completely mixed. Slowly stir in dish soap. Store in an airtight container. |
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
<cfset test = createObject('component', 'test') /> | |
<cfoutput>#test.test()#</cfoutput> |
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
<cfscript> | |
template = { | |
test: 'true' | |
}; | |
include template="test.cfm"; | |
writeDump(template); // Outputs: test.cfm | |
</cfscript> |
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
<cfif not structKeyExists(application, 'openIDConsumer') or structKeyExists(url, 'reinit')> | |
<cfset application.openIDConsumer = createObject('java', 'org.openid4java.consumer.ConsumerManager', expandPath('./openid4java.jar')).init() /> | |
</cfif> | |
<cfset openIDConsumer = application.openIDConsumer /> | |
<cfset discoveries = openIDConsumer.discover('https://www.google.com/accounts/o8/id') /> | |
<cfset discovered = openIDConsumer.associate(discoveries) /> |