Skip to content

Instantly share code, notes, and snippets.

@vinhnx
vinhnx / index.html
Created June 22, 2012 06:16
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@vinhnx
vinhnx / index.html
Created June 22, 2012 06:17
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@vinhnx
vinhnx / index.html
Created June 22, 2012 06:17
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@vinhnx
vinhnx / index.html
Created June 22, 2012 06:17
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@vinhnx
vinhnx / app.rb
Created August 12, 2012 07:25
Twit Buddy app.rb
#init
require 'rubygems'
require 'twitter'
require 'sinatra'
require 'haml'
# Twitter auth
Twitter.configure do |config|
config.consumer_key = 'xxxxxx'
config.consumer_secret = 'xxxxxx'
@vinhnx
vinhnx / gist:3508663
Created August 29, 2012 08:42
My own Sublime text 2 setting - default.
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
@vinhnx
vinhnx / gist:3508682
Created August 29, 2012 08:45
My own Sublime text 2 setting - user.
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"detect_slow_plugins": false,
"font_face": "DejaVu Sans Mono",
"font_size": 10,
"ignored_packages":
[
// disable plugins...
],
"phoenix_blur_current_tab": true,
@vinhnx
vinhnx / gist:3510004
Created August 29, 2012 10:25 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts [Windows version]

Sublime Text 2 – Useful Shortcuts (Windows)

General

ctrl+T go to file
ctrl+⌃P go to project
ctrl+R go to methods
⌃G go to line
ctrl+KB toggle side bar
ctrl+shift+P command prompt
@vinhnx
vinhnx / sticky.css
Created August 31, 2012 09:58
position: sticky
.sticky {
position: -webkit-sticky;
position: -moz-sticky;
position: -o-sticky;
position: sticky;
/* optional, set top: 1em padding when user scroll down */
top: 1em;
}
@vinhnx
vinhnx / sticky.less
Created August 31, 2012 10:11
position: sticky (LESS)
.sticky() {
position: -webkit-sticky;
position: -moz-sticky;
position: -ms-sticky;
position: sticky;
}
.foo {
.sticky;
top: 1em