Skip to content

Instantly share code, notes, and snippets.

@ogrrd
ogrrd / Mac Dev Setup.md
Last active November 12, 2020 22:16
Installing nginx, PHP and MySQL on OS X Mavericks

Installing a Web Developer setup on OS X Mavericks

Install Command Line Tools

This is a requirement for brew in the next step. You can install XCode and then install Command Line Tools through the XCode preferences, or you can install just the Command Line Tools.

Install Command Line Tools

$ xcode-select --install
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 22, 2025 08:10
A badass list of frontend development resources I collected over time.
@undoZen
undoZen / private.xml
Last active December 16, 2015 12:08
my private.xml file for KeyRemap4MacBook
<?xml version="1.0"?>
<root><!--
<item>
<name>Backquote to CapsLock and Escape to Backquote</name>
<identifier>private.swap_space_and_tab</identifier>
<autogen>__KeyToKey__ KeyCode::ESCAPE, KeyCode::BACKQUOTE</autogen>
<autogen>__KeyToKey__ KeyCode::BACKQUOTE, KeyCode::CAPSLOCK</autogen>
</item>
<item>
<name>Switch Input Source</name>
@andrew-aladev
andrew-aladev / package.json
Created November 21, 2012 09:52
share picture with twitter and flickr
{
"name": "oauth-shares",
"description": "oauth twitter and flickr shares integration",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.x",
"oauth": "0.9.x"
}
}
@supertowers
supertowers / gist:4052297
Created November 10, 2012 20:02
Oauth example for node js
var express = require('express');
var app = express();
app.use( express.cookieParser() );
app.use( express.session( { secret: 'blahblahblah' } ) );
var OAuth= require('oauth').OAuth;
@jcohen
jcohen / output
Created August 7, 2012 22:25
Upload photos using the Flickr API from node (and Mikeal's request using oauth and multipart)
$ time node upload.js
Error: null
Body: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photoid>7735964772</photoid>
</rsp>
real 0m5.517s
user 0m0.106s
@tqc
tqc / jqmdialogfix.css
Created April 19, 2012 12:24
jQuery mobile dialog transparency fix
.ui-dialog-background {
opacity: 0.5;
display: block !important;
-webkit-transition: opacity 0.5s ease-in;
}
.ui-dialog-background.pop.in {
opacity: 1;
-webkit-transition: opacity 0.5s ease-in;
}
@joshj
joshj / server.js
Created February 28, 2012 16:58 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
/*
Node.js, express, oauth example using Twitters API
Install Node.js:
curl -0 http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz
tar -zxf node-v0.6.11.tar.gz
cd node-v0.6.11
./configure
make
make install
@joshuapowell
joshuapowell / reset.less
Last active September 25, 2024 18:58
LESS: Global LESS CSS reset that gives elements default formatting.
/**
* Global Reset of all HTML Elements
*
* Resetting all of our HTML Elements ensures a smoother
* visual transition between browsers. If you don't believe me,
* try temporarily commenting out this block of code, then go
* and look at Mozilla versus Safari, both good browsers with
* a good implementation of CSS. The thing is, all browser CSS
* defaults are different and at the end of the day if visual
* consistency is what we're shooting for, then we need to
@smebberson
smebberson / .gitignore
Created January 9, 2012 06:46
Express simple authentication example
node_modules
*.swp