Skip to content

Instantly share code, notes, and snippets.

View julien-c's full-sized avatar
Real artists ship

Julien Chaumond julien-c

Real artists ship
View GitHub Profile
@julien-c
julien-c / oauth-ajax.js
Created July 31, 2012 08:56
Simple AJAX authentication on top of tmhOAuth (Twitter sign-in)
$(document).ready(function(){
var user;
/* Sign in with Twitter */
// On load we check whether user's logged in or not:
$.get("api/oauth_ajax.php", null, function(data){
$("#spinner").hide();
@julien-c
julien-c / gist:2709528
Created May 16, 2012 10:59
basic.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Flot Examples</title>
<link href="layout.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="../jquery.js"></script>
<script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
</head>
@julien-c
julien-c / MacOSX Lion
Created January 7, 2012 12:17
Disable the "application downloaded from the internet" warning
defaults write com.apple.LaunchServices LSQuarantine -bool NO
@julien-c
julien-c / Folder Preferences
Created January 6, 2012 11:04 — forked from chrisyour/Folder Preferences
Show hidden files and hidden folders (except .git) in your TextMate project drawer
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
print "Salut"