Skip to content

Instantly share code, notes, and snippets.

#header_bar {
background-color: #424a57;
background-image: -moz-linear-gradient(#424a57, #141e2e);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#424a57), to(#141e2e));
background-image: -webkit-linear-gradient(#424a57, #141e2e);
background-image: -o-linear-gradient(#424a57, #141e2e); }
#main_window {
background-color: #010203;
background-image: -moz-linear-gradient(#010203, #040506);
<div class="already">
<p>
Thank you. You have requested private npm beta access, and you're in the
queue. We will email you as soon as possible.
</p>
</div>
@luk-
luk- / inset_input.css
Created October 4, 2012 23:00 — forked from nrrrdcore/inset_input.css
The Perfect Inset Input CSS
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
@luk-
luk- / reset.css
Created October 10, 2012 22:03
my favorite reset
/* --------------------------------------------------------------
reset.css
* Resets default browser CSS.
-------------------------------------------------------------- */
html {
margin:0;
padding:0;
@luk-
luk- / process.js
Created October 17, 2012 16:24 — forked from rwaldron/process.js
// https://github.com/joyent/node/blob/master/src/node.cc#L2103
//
console.log(
typeof process !== "undefined" && {}.toString.call(process) === '[object process]'
);
d3.json('file.json', function (data) {
data_gobal = data
})
@luk-
luk- / index.html
Created November 8, 2012 06:20 — forked from mbostock/.block
SVG Linear Gradient (D3)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.1"></script>
</head>
<body>
<script type="text/javascript">
var w = 960,
h = 500;
@luk-
luk- / gist:4158931
Created November 28, 2012 03:56 — forked from fdmanana/gist:832610
The CouchDB replicator database

1. Introduction to the replicator database

A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".

Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.

The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.

2. Basics

@luk-
luk- / replicate_db.json
Created November 29, 2012 00:26
couch db replication using /_replicator db instead of /_replicate endpoint
{
"_id": "whatever",
"source": "http://some.couch.url/dbname",
"target": "local_dbname",
"continuous": true,
"user_ctx": {
"name": "user",
"roles": [
"_admin"
]
@luk-
luk- / install_couch.sh
Created November 29, 2012 03:22
Debian 6.0 CouchDB install script
#!/usr/bin/env bash
##
## Simple couchdb install script for Debian Squeeze.
## Created by Luke Arduini <[email protected]>
## 2012-11-29T03:15:15.494Z
## License: MIT/X11
##
echo -e 'Installing dependencies...\n'