Skip to content

Instantly share code, notes, and snippets.

@jtowle
jtowle / gist:1174022
Created August 26, 2011 18:11
Disable Newsstand Push Throttling
// For debugging - allow multiple pushes per day
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NKDontThrottleNewsstandContentNotifications"];
@timoxley
timoxley / gist:1721593
Created February 2, 2012 04:58
Recursively run all tests in test directory using mocha
// this will find all files ending with _test.js and run them with Mocha. Put this in your package.json
"scripts": {
"test": "find ./tests -name '*_test.js' | xargs mocha -R spec"
},
@kazeburo
kazeburo / gist:5087266
Created March 5, 2013 01:23
micro benchmark about urlmap
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Request::Common;
use HTTP::Message::PSGI;
use Plack::Test;
use Plack::Builder;
use Benchmark qw/cmpthese timethese/;
use File::Spec;

vi 手習い

コンテンツ

  • はじめに
    • 対象読者
    • ゴール
    • コマンドの表記ルール
  • Level 1
  • Hello!
@stephenlauck
stephenlauck / python_27_centos_65.md
Last active August 29, 2015 14:00
Steps to locally test Python cookbook and install 2.7 on CentOS 6.5
@kawanet
kawanet / string_to_buffer.js
Last active May 16, 2024 10:35
String と ArrayBuffer の相互変換 JavaScript
// 文字列から ArrayBuffer への変換
function string_to_buffer(src) {
return (new Uint16Array([].map.call(src, function(c) {
return c.charCodeAt(0)
}))).buffer;
}
// ArrayBuffer から文字列への変換