Skip to content

Instantly share code, notes, and snippets.

View matjaz's full-sized avatar
:octocat:

Matjaž Lipuš matjaz

:octocat:
View GitHub Profile
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
anonymous
anonymous / examples-server.eve
Created January 22, 2017 21:53
# Counter
## State
```
commit
[#state count: 0]
commit @browser
[#button sort: 0, text: "-", diff: -1]
[#button sort: 1, text: "+", diff: 1]
```
## Render
anonymous
anonymous / examples-bar-graph.eve
Created January 17, 2017 21:35
# Pet Lengths
Demonstration of the bar graph view.
Create some pets with rigorously measured lengths.
```
commit
[#pet name: "koala" length: 7]
[#pet name: "cat" length: 3]
@rodp
rodp / FIRST.BAS
Created January 11, 2017 09:55
My first computer program
10 PRINT "ZDRAVO"
20 GOTO 10
@streunerlein
streunerlein / gist:3332181
Created August 12, 2012 14:58
NPM Mirrors & Proxies

Definition

Mirrors: standalone servers with complete copy of npm registry

Proxies: proxy to the database (couchdb) of npm registry, if only the npm registry server fails but the db works

## HowTo See this gist: https://gist.github.com/3331671

Mirrors

(+) means server is self updating (pulls newest stuff from offical registry when back online again)

https://docs.google.com/present/edit?id=0Aa_f3QdXM5lYZGRyemZncTdfNGRqdDI3Y2ho&hl=en
https://gist.github.com/964654
https://gist.github.com/964925
import os
import sys
import time
from os.path import join as pjoin
import warnings
warnings.filterwarnings('ignore')
sys.path.insert(0, '/Users/kami/Projects/Programming/Python/libcloud-trunk')
@remy
remy / audiosprite.js
Created December 23, 2010 13:54
An example of how an audio sprite can be used (includes fixes for iOS)
function Track(src, spriteLength, audioLead) {
var track = this,
audio = document.createElement('audio');
audio.src = src;
audio.autobuffer = true;
audio.load();
audio.muted = true; // makes no difference on iOS :(
/* This is the magic. Since we can't preload, and loading requires a user's
input. So we bind a touch event to the body, and fingers crossed, the
@cowboy
cowboy / pubsub-demo.js
Created December 16, 2010 20:04 — forked from rmurphey/pubsub-demo.js
Two approaches: "Traditional" vs Pub/Sub (via rmurphey)
// Note that this uses my Pub/Sub implementation, which is slightly different than
// phiggins' in that jQuery custom events are used, and as such the first event handler
// argument passed is the event object.
//
// jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery
// https://gist.github.com/661855
// The "traditional" way.
@pgte
pgte / app.js
Created December 3, 2010 16:25
Node Tuts episode 12
var express = require('express');
var multipart = require('multipart');
var fs = require('fs');
var app = express.createServer();
app.configure(function() {
app.use(express.logger());
app.use(express.bodyDecoder());
app.use(express.methodOverride());