Skip to content

Instantly share code, notes, and snippets.

View kaiquewdev's full-sized avatar

Kaique Silva kaiquewdev

View GitHub Profile
@kennethkalmer
kennethkalmer / gist:278814
Created January 16, 2010 13:14
node.js SMTP Server
/*
smtpd.js is SMTP server written for node.js
MIT License
*/
var tcp = require('tcp');
var sys = require('sys');
@kaiquewdev
kaiquewdev / vimrc
Created September 25, 2011 07:06
my_vimrc
syntax on " Syntax color
set number " Numeration line by line
colorscheme torte " Set a desert scheme to default
" Search color
hi Search cterm=none ctermbg=4 ctermfg=15
set hlsearch
" History
set history=700
" Autoread
set autoread
@THEtheChad
THEtheChad / normalize.css
Created March 27, 2012 16:24
Minified Normalize CSS Reset
/*! normalize.css 2012-02-07T12:37 UTC - http://github.com/necolas/normalize.css */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:hover,a:active{outline:0}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.75em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}mark{background:#ff0;color:#000}p,pre{margin:1em 0}pre,code,kbd,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 20, 2024 03:08
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/usr/bin/env python
def cozimento( tempo_cozimento=0, a=0, b=0 ):
output = False
if tempo_cozimento and a and b:
if a > tempo_cozimento < b:
# Other stuff
tempo_minimo = min( a, b )
tempo_maximo = max( a, b )
@tj
tj / bash
Created November 2, 2012 03:51
Install anything from Github with a `make install` target
#!/usr/bin/env bash
repo=$1
rm -fr /tmp/gpm \
&& mkdir /tmp/gpm \
&& cd /tmp/gpm \
&& curl -#L https://github.com/$repo/tarball/master \
| tar zx --strip 1 \
&& make install
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Operating System
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
@ndarville
ndarville / business-models.md
Last active October 23, 2024 17:18
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google