Skip to content

Instantly share code, notes, and snippets.

@dangoor
dangoor / gist:960170
Created May 7, 2011
JS.next modules - no loader required
View gist:960170
// LABjs style
<script src="js/LAB.min.js"></script>
<script>
$LAB
.script("underscore.js")
.script("jquery.js")
.script("mycode.js")
.wait(function() {
//do something
View python.js
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
Version
* 1.1 (the "License"); you may not use this file except in compliance
with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
View Create Bespin User.txt
in bespinclient
source bin/activate
cd ../bespinserver
python
from bespin import config
config.set_profile("dev")
config.activate_profile
from bespin import db
db.User.create_user(username, password, email, "/path/to/your/home/directory (optional)")
View hello.js
"define metadata";
({
"name": "hello",
"provides": [
{
"ep": "command",
"name": "hello",
"description": "Says hi",
"pointer": "#helloWorld"
}
View StandardTheme.js
/* Theme stuff follows */
{
"description": "Provides the standard Bespin theme",
"provides": [
{
"ep": "editorTheme",
"name": "standard",
"description": "The standard Bespin theme",
"pointer": "#theme"
View gist:345028
"define metadata";
({
"provides": [
{
"ep": "keymapping",
states: {
start: [
{
name: 'Copy to clipboard',
regex: 'ctrl_c'
View gist:325401
"define metadata";
({
"provides":
[
{
"ep": "command",
"name": "hello",
"description": "simple hello world",
"pointer": "#hello"
}