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 files = []; | |
function walkDirs( start ){ | |
//since this is happening async how can I tell when it's done to process the files | |
fs.readdirSync( start, function( error, data ){ | |
if( error ){ | |
console.error( 'Oops!', error ); | |
} | |
else{ |
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
<snippet> | |
<content><![CDATA[describe( '$1', function(){ | |
$0 | |
} );]]></content> | |
<!-- Optional: Tab trigger to activate the snippet --> | |
<tabTrigger>describe</tabTrigger> | |
<!-- Optional: Scope the tab trigger will be active in --> | |
<scope>source.js</scope> | |
<!-- Optional: Description to show in the menu --> | |
<description>describe bdd statement</description> |
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 Rx = require('rx'); | |
var fs = require('fs'); | |
var Observable = Rx.Observable; | |
// helper function for converting callback APIs to Observables | |
var toObservableFunction = Observable.fromNodeCallback; | |
// convert each callback function to a function that returns Observables |
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 checks = evt.check(); | |
var saves = evt.save(); | |
var results = O.concat( checks, saves ); | |
results.subscribe( | |
function(){ | |
... | |
}, | |
function( err ){ |
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
jsbin.settings.editor.theme = "solarized light"; | |
jsbin.settings.editor.indentUnit = 4; | |
jsbin.settings.editor.smartIndent = true; | |
jsbin.settings.editor.tabSize = 4; | |
jsbin.settings.editor.indentWithTabs = false; | |
jsbin.settings.editor.autoClearEmptyLines = false; | |
jsbin.settings.editor.lineWrapping = false; | |
jsbin.settings.editor.lineNumbers = true; | |
jsbin.settings.editor.matchBrackets = true; |
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
#include <iostream> | |
#include <iomanip> | |
#include <fstream> | |
using namespace std; | |
string getUserInput(); | |
void showPersonality( string ); |
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
" URL: http://vim.wikia.com/wiki/Example_vimrc | |
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode | |
" Description: A minimal, but feature rich, example .vimrc. If you are a | |
" newbie, basing your first .vimrc on this file is a good choice. | |
" If you're a more advanced user, building your own .vimrc based | |
" on this file is still a good idea. | |
"------------------------------------------------------------ | |
" Features {{{1 | |
" |
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
<cfinterface displayname="iAnswerable" hint="I represent a class that answers a question"> | |
<cffunction name="Answer" returntype="string" access="public" output="false" hint="I answer a question"> | |
<cfargument name="question" type="any" required="true" /> | |
</cffunction> | |
</cfinterface> |
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
<cffunction name="SetJobDelegate" returntype="void" output="false"> | |
<cfargument name="JobDelegate" type="com.idl.app.warm.cfobj.Job.JobDelegate" /> | |
<cfset variables.JobDelegate = arguments.JobDelegate /> | |
</cffunction> | |
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
if (contractApproval.getRegionID() != null) { | |
List regionList = service.getRegionList(); | |
for (Iterator it = regionList.iterator(); it.hasNext();) { | |
KeyValuePair keyValuePair = (KeyValuePair) it.next(); | |
String id = keyValuePair.getId(); | |
String desc = keyValuePair.getDescription(); | |
if (id.equalsIgnoreCase(String.valueOf(contractApproval.getRegionID()))) { | |
contractApproval.setRegionName(desc); | |
break; |
OlderNewer