Skip to content

Instantly share code, notes, and snippets.

View halan's full-sized avatar
🛹

Halan Pinheiro halan

🛹
View GitHub Profile
1. Two space soft indents (fake tabs) OR tabs... BUT NEVER BOTH - DO NOT MIX
2. Whitespace, Parens, Braces, Linebreaks
if/else/for/while/try always have spaces, braces and multiple lines.
--------------------------------------------------------------------
@halan
halan / SassMeister-input-HTML.html
Created March 14, 2014 20:12
Generated by SassMeister.com.
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
<div>
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
</div>
curl -I http://whos.amung.us/widget/dtosqdqleyjj.pnh
HTTP/1.1 303 See Other
Date: Mon, 20 Jan 2014 11:09:18 GMT
Content-Type: text/html
Connection: close
Location: http://widgets.amung.us/classic/05/516.png
Set-Cookie: uid=CgH9JlLdA96wISIIGbwBAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=whos.amung.us; path=/
@halan
halan / .vimrc
Last active December 26, 2015 20:59
set t_Co=256
if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
@halan
halan / detector.bug.html
Last active December 22, 2015 10:08
V8 Bug!
<script>
a = 'Bug'
r = {z: {x: a}, z: 'Not Bug!'}
if(r.z == 'Not Bug!')
document.write('<style>html{background: green}</style>')
else
document.write('<style>html{background: red}</style>')
</script>
require 'delegate'
class AbandonedTrialQuery < SimpleDelegator
def initialize(relation = Account.scoped)
super(relation.where(plan: nil, invites_count: 0))
end
end
class String
ACCENTED_VOWELS = "áàãâäéèêëíìîïóòõôöúùûüçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÔÖÚÙÛÜÇ"
UNACCENTED_VOWELS = "aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC"
def unaccentize
self.tr ACCENTED_VOWELS, UNACCENTED_VOWELS
end
end

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related