Skip to content
View dabblet.css
/* HALLOW */
/*
@-webkit-keyframes AMPS-moon {
0%{ background-position: 0% 110%; }
40%{ background-position: 100% -100px; }
50%{ background-position: 100% -100px; }
60%{ background-position: 100% -100px; }
100%{ background-position: 0% 110%; }
}
*/
View pk2gz.pl
#!/usr/bin/env perl
# Extract deflated first member from PKWARE ZIP as GZIP.
# klg, Feb, Oct 2014
use strict;
use constant {
ZIP_FILE => 0x04034b50,
GZIP_MAGIC => 0x8b1f,
CM_DEFLATE => 8,
};
View ctrl-v_ctrl-a_fix.patch
diff --git a/src/charset.c b/src/charset.c
--- a/src/charset.c
+++ b/src/charset.c
@@ -1908,6 +1908,7 @@
}
else if (hex != 0 || dohex > 1)
{
+ n += 2; /* Counting "0x" */
/* hex */
while (vim_isxdigit(*ptr))
View feed.json
{"updated":"2015-08-30 03:35:40 +0000","articles":[{"title":"Simen kjenner alle de kriminelle på øya","link":"http://www.nrk.no/finnmark/de-kriminelle-kjenner-simen_-og-han-kjenner-dem-1.12521275"},{"title":"– Han er verdens største idrettsutøver","link":"http://www.nrk.no/sport/_-det-var-et-legendarisk-oyeblikk-1.12524955"},{"title":"Mann falt 150 meter fra fjellskrent – døde","link":"http://www.nrk.no/hordaland/mann-i-50-arene-dode-etter-fall-fra-fjellskrent-1.12524990"},{"title":"Ebola tok hele familien hennes – nå er hun selv blitt mor","link":"http://nrk.no/verden/ebola-overlever-som-mistet-21-familiemedlemmer-fodte-sonn-1.12523259"},{"title":"Disse tre ble kveldens Stjernekamp-tapere","link":"http://nrk.no/kultur/stjernekamp-er-i-gang-1.12524970"},{"title":"– Det er ren presisjon","link":"http://www.nrk.no/kultur/stjernekamp_-dette-mente-dommerne-1.12525108"},{"title":"– Det er galskap","link":"http://www.nrk.no/sport/viking-vant-enkelt-hjemme-mot-sandefjord-1.12525029"},{"title":"Storhamar med ny kjemp
View tw-stock.js
CmdUtils.CreateCommand({
name: "tw-stock",
author: { name: "Walter Chang", email: "weihsiu@gmail.com" },
license: "Creative Commons 3.0 (by nc)",
description: "Quote a stock symbol from Taiwan Stock Exchange",
takes: {"stock symbol": noun_arb_text},
preview: function(pblock, what) {
var msg = 'Gets stock quote for "${stockSymbol}"';
var subs = { stockSymbol: what.text };
pblock.innerHTML = CmdUtils.renderTemplate(msg, subs);
View gist:84541
RELEASE_OUTPUT_PATH = File.expand_path("~/Projects/releases/Squeemote")
TARGET_NAME = "Squeemote"
CONFIGURATION = ENV['CONFIGURATION'] || "Distribution"
SDK_VERSION = ENV['SDK'] || 'iphoneos2.2'
task :release do
puts "* Bumping build version."
`agvtool bump -all`
puts "* Building #{CONFIGURATION} release."
View Comment.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<setting name="comment-multiline-start">
<syntax-context>php, php > *</syntax-context>
<value>/*</value>
</setting>
<setting name="comment-multiline-end">
View gist:84527
<div id="comments"></div>
<div id="pages">
<a href="#" class="page">1</a>
<a href="#" class="page">2</a>
<a href="#" class="page">3</a>
</div>
<script type="text/javascript">
$('.page').click(function(e){
// 內容改成風火輪,看起來像在讀取中...
View mailer.rb
# Stolen from http://snippets.dzone.com/posts/show/6621 (for me to remember)
# for this example the folder structure should be as follow
#
# --+ mailer
# |-- image.jpg
# |-- mailer.rb (this file)
# |--+ notifier
# |-- email.rhtml
View jabour03
var request = [CPURLRequest requestWithURL:"http://brs.allometry.com/users/login"];
var requestJSON = {"Username":"sjabour","Password":"1234567"};
[request setHTTPMethod:@"POST"];
[request setHTTPBody:CPJSObjectCreateJSON(requestJSON)];
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[request setValue:@"UTF-8" forHTTPHeaderField:@"charset"];
var connection = [CPURLConnection connectionWithRequest:request delegate:self];
Something went wrong with that request. Please try again.