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
<cfparam name="url.chr" type="numeric" default="40" /> | |
<cfparam name="url.useCustomFunction" type="boolean" default="false" /> | |
<cfsilent> | |
<cfset myStruct = StructNew() /> | |
<cfset myStruct["myString"] = ":DEC:[#url.chr#] - :CHR:[#chr(url.chr)#]." /> | |
<cfif url.useCustomFunction> | |
<cfset myJSON = SafeSerializeJSON(myStruct) /> | |
<cfelse> | |
<cfset myJSON = SerializeJSON(myStruct) /> | |
</cfif> |
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 java.awt.BorderLayout; | |
/** | |
* An example class for testing a method of setting conditional breakpoints | |
* based off of the hash of the current stack trace. | |
* | |
* Eventually, I'd like to edit the Java breakpoint condition editor: | |
* org.eclipse.jdt.debug.ui.breakpoints.JavaBreakpointConditionEditor.java | |
* to allow keeping track of the stack trace history for a given breakpoint, and | |
* only break on certain hashes. It would also be nice to keep a count of each |
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> | |
private struct function convertStringToStruct(required string key, required any value, string delimiter = ".") { | |
var obj = StructNew(); | |
var first = ListFirst(arguments.key, arguments.delimiter); | |
var rest = ListRest(arguments.key, arguments.delimiter); | |
if (Len(rest)) { | |
obj[first] = convertStringToStruct(rest, arguments.value, arguments.delimiter); | |
} else { | |
obj[first] = arguments.value; |
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
require 'formula' | |
class Jq < Formula | |
homepage 'http://stedolan.github.com/jq/' | |
url 'http://stedolan.github.com/jq/download/source/jq.tgz' | |
sha1 'b3dfaafd1bbe89f04a92036eade3475613078e0c' | |
version '32e1b114df' | |
def install | |
system "make" |
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
javascript:(function(){var%20b=$('<button%20style="margin:0px%200%2010px%20560px;width:100px;cursor:pointer;border-radius:5px;">Select%20All</button>'),p=$('pre.prettyprint');b.click(function(){var%20o=this,$o=$(o),p=$o.next('.prettyprint')[0],s1=document.selection,s2=window.getSelection,r;$o.toggleClass('active');if(s1){s1.empty();}else%20if(s2){s2().removeAllRanges();}if($o.hasClass('active')){if(s1){r=document.body.createTextRange();r.moveToElementText(p);r.select();}else%20if(s2){r=document.createRange();r.selectNode(p);s2().addRange(r);}}});p.before(b);}()); |
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
javascript:(function(l){l.href='http://soundgecko.com/listen?source=widget&url='+encodeURIComponent(l);}(document.location)); |
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.skratchdot.riff.wav.ChunkCue; | |
import com.skratchdot.riff.wav.ChunkTypeID; | |
import com.skratchdot.riff.wav.CuePoint; | |
import com.skratchdot.riff.wav.RIFFWave; | |
import com.skratchdot.riff.wav.WavFactory; | |
public class RiffWavCuePointExample { | |
/** | |
* @param args |
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 SKRATCHDOT = SKRATCHDOT || {}; |
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
/*globals jQuery */ | |
(function ($) { | |
'use strict'; | |
var prune = function (orig, item) { | |
var parent = item.parent(); | |
item.siblings().remove(); | |
if (parent.length > 0 && !parent.is('body') && !parent.is('html')) { | |
return prune(orig, parent); | |
} | |
return orig; |
OlderNewer