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
TarGZ = function(){}; | |
// Load and parse archive, calls onload after loading all files. | |
TarGZ.load = function(url, onload, onstream, onerror) { | |
var o = new TarGZ(); | |
o.onload = onload; | |
o.onerror = onerror; | |
o.onstream = onstream; | |
o.load(url); | |
return o; |
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
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Linq; | |
namespace Sonorous.Core.Services | |
{ | |
public static class StructExtensions | |
{ | |
public delegate bool TryParseDelegate<T>(string input, out T value); |
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 | |
ENVIRONMENT_KEY=Spreedly_Environment_Key | |
SECRET=Spreedly_Secret | |
GATEWAY=Spreedly_Gateway_Token | |
echo Tokenize request | |
curl https://core.spreedly.com/v1/payment_methods.json\?environment_key=$ENVIRONMENT_KEY \ | |
-H 'Origin: http://localhost' \ | |
-H 'X-Requested-With: XMLHttpRequest' \ | |
-H 'Content-Type: application/json' \ |
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($) { | |
$("li").each(function(i, e) { | |
var current = $(e); | |
var parent = current.parents("li"); | |
var id = []; | |
if (parent.length) { | |
id = parent.data("id").map(function(e) { return e; }); | |
id.push(current.prevAll("li").length + 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
SELECT | |
r.session_id, | |
t.text, | |
r.status, | |
r.command, | |
database_name = DB_NAME(r.database_id), | |
r.cpu_time, | |
r.total_elapsed_time, | |
r.percent_complete | |
FROM sys.dm_exec_requests r |
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($) { | |
$(function() { | |
function sortTable(event) { | |
var header = $(event.currentTarget); | |
var column = header.prevAll().length; | |
var table = header.closest("table"); | |
var body = table.find("tbody"); | |
var rows = body.find("tr"); | |
NewerOlder