Skip to content

Instantly share code, notes, and snippets.

SELECT type, repo.name, actor.login FROM [githubarchive:month.201701] WHERE type = 'CreateEvent' LIMIT 1000
@sayjava
sayjava / blogpost.md
Last active January 22, 2017 20:58
The blog post

My first blog post about angularjs components

import {Component} from 'react';

class CoolComponent extends Component {
  
  render(){
    
 }
@sayjava
sayjava / 0_reuse_code.js
Created February 6, 2014 17:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sayjava
sayjava / gist:8848782
Created February 6, 2014 17:28
javascript inheritance.
var extender = function(initializer){
var parent = this;
var child = function(){
parent.apply(this,arguments);
if(initializer) initializer.apply(this,arguments);
}
var Surrogate = function(){this.constructor = child; };
Surrogate.prototype = parent.prototype;
child.prototype = new Surrogate();