Skip to content

Instantly share code, notes, and snippets.


Jan Killian iki

View GitHub Profile
from sklearn.externals import joblib
import time
import numpy
import pickle
bigarray = numpy.zeros([190,91,190])
bigarray = bigarray.flatten()
### Saving
yoavniran /
Last active Jul 28, 2021
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest

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.


  • @zpao
  • @sebmarkbage
  • @spicyj
  • @jeffmo
ahmednuaman / default.js
Created Jan 6, 2015
Getting BrowserSync and gulp-watch to play nicely
View default.js
var browserSync = require('browser-sync'),
common = require('./__common__'),
gulp = require('gulp'),
watch = require('gulp-watch');
gulp.task('default', [
], function () {
server: {
View gulpfile.js
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
paf31 /
Last active Apr 15, 2020
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

snez / meta.client.service.js
Last active Feb 24, 2017
MeanJS and Single Page Applications meta tags SEO
View meta.client.service.js
'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');
debrice /
Last active Jan 30, 2018
Detecting Similar News

Detecting Similar News

The following gist is an extract of the article Detecting Similar News. It exploit data retrieve by a crawler and detect similar article across different domains


Start by running the crawler to retrieve the data. Crawler takes about 50 minutes to retrieve all the data the first time.

$ python
retrieving url... [] /
debrice / Flask-SQLAlchemy
Last active Aug 21, 2020
Flask SQLAlchemy Caching
View Flask-SQLAlchemy

Flask-SQLAlchemy Caching

The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.


retrieve one object

# pulling one User object
user = User.query.get(1)
staltz /
Last active Aug 2, 2021
The introduction to Reactive Programming you've been missing