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
---------- Forwarded message ---------- | |
From: Mark S. Miller <[email protected]> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: [email protected] | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |
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
// ==UserScript== | |
// @name v2ex novice killer | |
// @namespace http://shellex.info | |
// @author shellex([email protected]) | |
// @description 干掉使用默认头像的人的发言 | |
// @include http://www.v2ex.com/go/* | |
// @include http://v2ex.com/go/* | |
// @include http://www.v2ex.com/?tab=* | |
// @include http://v2ex.com/?tab=* | |
// @include http://www.v2ex.com/ |
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
// ==UserScript== | |
// @name CnblogsPaginatorFix | |
// @namespace cnblogs | |
// @include http://www.cnblogs.com/* | |
// ==/UserScript== | |
Array.prototype.slice.call(document.querySelectorAll('#paging_block .pager a')).forEach(function (elm) { | |
elm.removeAttribute('onClick'); | |
}); |
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 | |
# see: http://blog.tomtung.com/2009/11/cowsay-fortune | |
# http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed | |
# https://github.com/busyloop/lolcat | |
# https://github.com/dorentus/mruby-lolcat-bin | |
# | |
# requires `fortune`, `cowsay`, | |
# and ruby gem `lolcat` or its mruby version equivalent | |
export LANG="en_US.UTF-8" |
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
type old_command_not_found_handle 2>/dev/null | grep -q 'is a function' > /dev/null | |
if [ $? -ne 0 ]; then | |
eval "$(echo "old_command_not_found_handle()"; declare -f command_not_found_handle | tail -n +2)" | |
fi | |
command_not_found_handle () { | |
if [[ ! "$1" ]] ; then | |
old_command_not_found_handle $@ | |
return $? | |
fi |
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
Use 'dpkg --get-selections > selections.txt' to save a selection and 'dpkg | |
--set-selections < selections.txt && apt-get dselect-upgrade' to restore. |
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
require 'formula' | |
class Mruby < Formula | |
homepage 'http://www.mruby.org/' | |
head 'https://github.com/mruby/mruby.git' | |
def install | |
ENV.j1 | |
system "make" | |
system "make test" |
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
diff -Naru libpng-1.5.13.org/png.h libpng-1.5.13/png.h | |
--- libpng-1.5.13.org/png.h 2012-09-30 19:13:07.000000000 +0900 | |
+++ libpng-1.5.13/png.h 2012-09-30 19:13:07.000000000 +0900 | |
@@ -442,6 +442,10 @@ | |
# include "pnglibconf.h" | |
#endif | |
+#define PNG_APNG_SUPPORTED | |
+#define PNG_READ_APNG_SUPPORTED | |
+#define PNG_WRITE_APNG_SUPPORTED |
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
[color] | |
ui = auto | |
[push] | |
default = simple | |
[core] | |
editor = vim | |
quotepath = false | |
[alias] | |
lg = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative --show-signature | |
[branch] |
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
id dynamicUITableViewDequeueReusableCellWithIdentifierForIndexPath(id self, SEL cmd, NSString *identifier, NSIndexPath *indexPath) | |
{ | |
return [self performSelector:@selector(dequeueReusableCellWithIdentifier:) withObject:identifier]; | |
} | |
void __compat_fix() | |
{ | |
SEL aSEL = @selector(dequeueReusableCellWithIdentifier:forIndexPath:); | |
if (![UITableView instancesRespondToSelector:aSEL]) { | |
BOOL success = class_addMethod([UITableView class], aSEL, (IMP)dynamicUITableViewDequeueReusableCellWithIdentifierForIndexPath, "@@:@"); |
OlderNewer