start new:
tmux
start new with session name:
tmux new -s myname
test |
/** | |
* Angular needs to send the Rails CSRF token with each post request. | |
* | |
* Here we get the token from the meta tags (make sure <%= csrf_meta_tags %> | |
* is present in your layout.) | |
*/ | |
angular.module('myapp',[]). | |
// configure our http requests to include the Rails CSRF token | |
config(["$httpProvider", function(p) { | |
var m = document.getElementsByTagName('meta'); |
function onclick(e) { | |
var range; | |
if (document.caretRangeFromPoint) { | |
range = document.caretRangeFromPoint(e.pageX, e.pageY); | |
} else if (e.rangeParent) { | |
range = document.createRange(); | |
range.setStart(e.rangeParent, e.rangeOffset); | |
} | |
var textContainer = range.startContainer; |
<!DOCTYPE HTML> | |
<head> | |
<title>Codesnippit NodeJS Twitter Tracker Client</title> | |
</head> | |
<body> | |
<ul></ul> | |
<script> | |
(function() { | |
var script = document.createElement("script"); | |
script.src = "http://code.jquery.com/jquery.min.js"; |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
<!DOCTYPE html> | |
<html ng-app="Notes"> | |
<head> | |
<title> Simple and Delightful Notes Everywhere</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= csrf_meta_tags %> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> | |
<!-- Mobile Viewport Fix | |
j.mp/mobileviewport davidbcalhoun.com/2010/viewport-metatag | |
device-width : Occupy full width of the screen in its current orientation |
<VirtualHost *> | |
Servername whoahbot.example.com | |
DocumentRoot /var/www | |
RewriteEngine On | |
RewriteRule ^/http-bind/ http://jabber.example.com:5280/http-bind/ [P] | |
</VirtualHost> |
Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.
Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.
To name a gist, touch its name in the toolbar.
You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Getting Started Form</title> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<!-- jQuery is used only for this example; it isn't required to use Stripe --> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// this identifies your website in the createToken call below |