Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Killian iki

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

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
@ahmednuaman
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', [
'less'
], function () {
browserSync({
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
paf31 / 24days.md
Last active Apr 15, 2020
24 Days of PureScript
View 24days.md

This blog post series has moved here.

You might also be interested in the 2016 version.

@snez
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
debrice / detector.md
Last active Jan 30, 2018
Detecting Similar News
View detector.md

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

Usage

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

$ python run.py
retrieving url... [techcrunch.com] /
@debrice
debrice / Flask-SQLAlchemy Caching.md
Last active Aug 21, 2020
Flask SQLAlchemy Caching
View Flask-SQLAlchemy Caching.md

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.

Usage

retrieve one object

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