Skip to content

Instantly share code, notes, and snippets.

@luk-
luk- / ios-safari-hide.js
Created March 5, 2013 05:08
hide ios safari address bar
window.addEventListener("load",function() {
setTimeout(function(){
window.scrollTo(0, 1);
}, 0);
});
@luk-
luk- / deps.md
Last active October 22, 2022 04:33
@luk-
luk- / http_build_query.js
Created May 17, 2012 22:42
php's http_build_query() in javascript
var build_query = function (obj, num_prefix, temp_key) {
var output_string = []
Object.keys(obj).forEach(function (val) {
var key = val;
num_prefix && !isNaN(key) ? key = num_prefix + key : ''
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
@luk-
luk- / my.cnf
Created November 11, 2011 22:12
CentOS 5.6 default my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
void LogStackTrace(Handle<Object> obj) {
try {
Local<Value> args[] = {};
Local<Value> frameCount = obj->Get(String::New("frameCount"));
Hi Luke,
My name is Rebecca and I work for a publishers called Packt Publishing. We publish books for all levels of I.T. users across Enterprise and Open Source software (www.packtpub.com if you would like to have a look).
We currently have a book in development titled 'Node.js Design Patterns' which will aim to provide the reader with a set of Node.js server side design patterns through a series of step-by-step tutorials, it'll hopefully be around 300-350 pages.
I see that you're working at Yahoo with Node and have worked with Node.js on a variety of open source projects, also that you've presented at NodeSummit 2013, so I was wondering if you'd be interested in authoring this book for us?
If so, please let me know and we can discuss the opportunity further.
@luk-
luk- / pr.md
Created October 18, 2013 00:06 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

{ remain: [ 'i', 'mlb' ],
cooked: [ 'i', 'mlb', '--save' ],
original: [ 'i', 'mlb', '-S' ] }
We'll let you know when it's ready.