Skip to content

Instantly share code, notes, and snippets.

@endolith
endolith / Has weird right-to-left characters.txt
Last active July 17, 2024 12:41
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@lucasmazza
lucasmazza / script.js
Created March 3, 2011 22:24
simple browser detection.
var browsers = ['msie', 'webkit', 'opera', 'mozilla'];
for(var index in browsers) {
var browser = browsers[index];
if($.browser[browser]) $('html').addClass(browser);
}
@shapeshed
shapeshed / rails_env.sh
Created April 11, 2011 09:55
RVM, Nginx and Passenger sitting in a tree..
# !/bin/bash
# Script: rails_env.sh
# Task: Builds a Rails stack with RVM, Passenger and Nginx
# Author: George Ornbo <george@shapeshed.com>
#
# Copyright (C) 2011 by George Ornbo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
module Test
module Unit
TestCase = RSpec::Core::ExampleGroup
end
end
class Test::Unit::TestCase
def self.inherited(host)
host.set_it_up host.name.gsub(/(Spec|Test)/,'')
def host.method_added(name)
@lucasmazza
lucasmazza / font.css
Created May 26, 2011 21:57
The last font-stack that I would ever use.
font-family: 'Lucida Grande', Verdana, Verdana, Arial, Helvetica, sans-serif;
@brendanjerwin
brendanjerwin / writer
Created May 28, 2011 00:45
open iA writer from the command line
#! /bin/bash
open $1 -a /Applications/iA\ Writer.app
function rake {
if [ -e Gemfile ]; then
bundle exec rake $@
else
`which rake` $@
fi
}
@lucasmazza
lucasmazza / gist:1019447
Created June 10, 2011 18:35
Awesome boxes with stylus
boxify(light-color, dark-color)
background-color light-color
background -moz-linear-gradient(top, light-color, dark-color)
background -webkit-gradient(linear, 0% 0%, 0% 100%, from(light-color), to(dark-color))
border 1px solid darken(dark-color, 10%)
box-shadow 0 1px 0 0 lighten(light-color, 20%) inset
text-shadow 0 1px 0 #FFF
@roidrage
roidrage / ebooks.md
Created December 2, 2011 15:15
Self-published and awesome
@DAddYE
DAddYE / hack.sh
Created March 19, 2012 11:31
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions: