(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/python | |
import requests, json, pprint, time, socket | |
CARBON_SERVER = '0.0.0.0' | |
CARBON_PORT = 2003 | |
def send_msg(message): | |
#print 'sending message: %s' % message | |
sock = socket.socket() |
Moved to a proprer repositoy, TSWS is a real boy now! | |
https://github.com/dfletcher/tsws | |
PRs welcomed. |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
Unique samples in tasks_1-20_v1-2/en-10k/qa10_indefinite-knowledge_{}.txt | |
Train length: 9989 | |
Test length: 1000 | |
Intersection: 0 | |
Unique samples in tasks_1-20_v1-2/en-10k/qa11_basic-coreference_{}.txt | |
Train length: 9827 | |
Test length: 997 | |
Intersection: 25 | |
Unique samples in tasks_1-20_v1-2/en-10k/qa12_conjunction_{}.txt | |
Train length: 9991 |
/* | |
* OGL_OCV_common.cpp | |
* Common interop between OpenCV and OpenGL | |
* | |
* Created by Roy Shilkrot on 2/16/2015 | |
* Copyright 2015 Roy Shilkrot. All rights reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
# copied from http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
git clone <git repository A url> # clone source repository | |
cd <git repository A directory> | |
git remote rm origin # to make sure it doesn't affect the original repository | |
git filter-branch --subdirectory-filter <directory 1> -- --all # remove all files other than the ones needed | |
mkdir <directory 1> # move them into another directory where they will be stored in the destination repository (if needed) | |
mv * <directory 1> | |
git add . | |
git commit |
/// <summary> | |
/// Fisher-Yates algorithm with O(n) time complexity | |
/// </summary> | |
/// <param name="array">array to be shuffled</param> | |
/// <returns>shuffled array</returns> | |
public static int[] FisherYates(int[] array) | |
{ | |
Random r = new Random(); | |
for (int i = array.Length - 1; i > 0; i--) | |
{ |
/**=- VERSION 1.2 -=**/ | |
var canvas, c; | |
var dots = [ ]; | |
var lines = [ ]; | |
var count = 0; | |
var m = { | |
mousePos : function(canvas, evt) { | |
var rect = canvas.getBoundingClientRect(); |
import cv2 | |
import numpy as np | |
class BagOfFeatures: | |
"""This is a class of Bag-of-Features by K-means for OpenCV""" | |
codebookSize=0 | |
classifier=None | |
def __init__(self, codebookSize): | |
self.codebookSize=codebookSize | |
self.classifier=cv2.KNearest() |