Skip to content

Instantly share code, notes, and snippets.

View iki's full-sized avatar

Jan Killian iki

View GitHub Profile
#!/usr/bin/python
#
# Requires libevent, greenlet, gevent and pyzmq.
#
# Exemplar run:
#
# $ ./poblano_backend.py
# GitHub handled by worker 1: OK
# Jenkins handled by worker 2: OK
# Review Board handled by worker 1: OK
@leostera
leostera / ngseed.post
Created August 19, 2013 15:50
CleverStack ngSeed Blog Post
# CleverStack
## Angular Seed
### YAAS (Yet Another Angular Seed)
While know about the existence of `ng-boilerplate`, the `angular-app` repo on Github, or even Yeoman and it's `angular-generator`, none of those really fit the bill when it comes to structuring a medium to large application as it often is the case here at Clevertech.
This is not yet another angular seed: this is the collaborative effort of open source enthusiasts to solve the most of the problems in AngularJS development. Yes, we took the liberty of adding a bit of a bleak packaging but that allows us for dead-easy installing, upgrading and extending.
Let's dive into it.
class RottenGzipFile(object):
"""
Standard library GzipFile replacement, since it has several issues with
files containing extra data after compressed stream.
See http://stackoverflow.com/questions/4928560/how-can-i-work-with-gzip-files-which-contain-extra-data
for details.
This class does not implement everything usually included in file-like
objects.

React-Core Meeting Notes 2015-03-20

Note: This is the first time we're sharing meeting notes publicly. The primary reason we haven't shared these is because we often mix public discussions with matters that are Facebook specific and should not be public. We're really trying to be more open about our development process and what's happening inside the project so moving forward, we'll be sharing meeting notes. While most of us do work at Facebook, we're committed to this being an open project - for now we'll filter out the private notes from the public notes. Hopefully we can make it possible for these meetings to be open to any who wish to attend.

Attendees:

  • @zpao
  • @sebmarkbage
  • @spicyj
  • @jeffmo

Reviewer's checklist - How to boost your code review skills

Purpose of my lightning talk is to present insights I've reached as a reviewer/ reviewee in the last couple of months.

I will answer these questions:

  • What makes a good code review good?
  • How to build guidelines? Dos and Don'ts.
  • How to educate dev/team members about the code review process?
@snez
snez / meta.client.service.js
Last active February 24, 2017 23:36
MeanJS and Single Page Applications meta tags SEO
'use strict';
/*
This service can be used in MeanJS to add support for dynamic meta tag content depending on the
view that is rendered by ui-router. The same code can be reused in other SPAs with minor adjustments.
Usage: Copy this file in public/modules/core/services/ of MeanJS. Then inject the $meta service
into a controller and use any of the following statements to set the view's meta tag content.
$meta.setTitle('view title');
@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)

anonymous
anonymous / gulpfile.js
Created December 18, 2014 15:25
var gulp = require("gulp");
var sass = require("gulp-sass");
var autoprefix = require("gulp-autoprefixer");
var filter = require('gulp-filter');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
/**
* Start BrowserSync
*/
application: zip-site
version: main
runtime: python
api_version: 1
handlers:
- url: /.*
script: main.py
anonymous
anonymous / gist:2717042
Created May 17, 2012 06:42
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Get Stock", functionName: "getStock"}];
ss.addMenu("Finance", menuEntries);
}
function getStock() {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.getRange(1, 1).setValue("Symbol");