Skip to content

Instantly share code, notes, and snippets.

@vidaaudrey
vidaaudrey / gist:d66e33f65cac3e10da90
Last active August 29, 2015 14:26 — forked from shripadk/gist:652819
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
@vidaaudrey
vidaaudrey / Default (OSX).sublime-keymap
Created August 11, 2015 16:58
Speedy Sublime Settings for Web Development
[
{ "keys": ["super+option+m"], "command": "quick_file_move" },
{ "keys": ["super+option+p"], "command": "autoprefixer" },
{ "keys": ["super+option+0"],
"command": "side_bar_open_in_browser" ,
"args":{"paths":[], "type":"testing", "browser":""}
},
{ "keys": ["super+option+9"],
@vidaaudrey
vidaaudrey / .gitignore
Last active August 29, 2015 14:27 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@vidaaudrey
vidaaudrey / config.json
Created September 22, 2015 19:46 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@vidaaudrey
vidaaudrey / _mixins.scss
Created September 22, 2015 23:48 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}

Hallo! Hello!

Hello, world

@vidaaudrey
vidaaudrey / reset.sass
Last active November 10, 2015 17:39 — forked from trey/reset.sass
Eric Meyer's reset.css in Sass. Originally by @postpostmodern.
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
@vidaaudrey
vidaaudrey / reset.css
Created November 10, 2015 17:40
reset.css meyerweb
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@vidaaudrey
vidaaudrey / git.txt
Last active December 30, 2015 18:27
Git commands
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
git diff --cached #--cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD. --staged is a synonym for --cached