Skip to content

Instantly share code, notes, and snippets.

@ondrek
ondrek / javascript.js
Last active August 29, 2015 13:57
Zinken Structure ™
var CreateBuildDirectory = function(callback) {
events.EventEmitter.call(this);
this.on("error", function(error){
throw error;
process.kill();
});
this.on("removed", function(){
document.addEventListener("deviceready", function(){ console.log(device) }, false);
/*
File: CarbonSound/Sound.h
Contains: Sound Manager Interfaces.
Version: CarbonSound-116~1
Copyright: © 1986-2008 by Apple Computer, Inc., all rights reserved
Bugs?: For bug reports, consult the following page on
"use strict";
var Boilerplate = function() {
require("events").EventEmitter.call(this);
this.on("synch", function(){
console.log("synch passed");
});
@ondrek
ondrek / gist:9861855
Last active August 29, 2015 13:57
usa-trip.md
Flighs :)
16 May 2014
13:20 Amsterdam, P+R Zeeburg
18:50 Düsseldorf, Hbf., Worringer Str.
17 May 2014
Dusseldorf (DUS) ~ Warsaw (Chopin WAW)
07:10 ~ 08:50
@ondrek
ondrek / gist:9971184
Created April 4, 2014 09:29
List 2014
- Learn Python
create small testcases, understand syntax, write funny program
- Finish Downpress
great generator of static websites
function Test(){
this.element = document.querySelector(".hello");
this.helloWorld();
}
Test.prototype.helloWorld = function(){
var that = this;
@ondrek
ondrek / architecture.js
Created April 11, 2014 12:45
Sexy Javascript architecture
var Downpress = function(){
this.doSomethingCool();
this.doSomethingElse();
this.doSomethingNext();
};
Downpress.prototype.doSomethingCool = function(){};
Downpress.prototype.doSomethingElse = function(){};
<!DOCTYPE html><html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css">
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0-rc.2/jquery.mobile-1.1.0-rc.2.min.js"></script>
@ondrek
ondrek / frontend.css
Created April 29, 2014 09:23
frontend.sk styles
body { background: red; }