This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"log" | |
"os" | |
) | |
const BUFF = 1024 * 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cv2 | |
import time | |
import glob | |
import facenet | |
import fr_utils | |
import numpy as np | |
import tensorflow as tf | |
from numpy import genfromtxt | |
from keras import backend as K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import keras | |
import numpy as np | |
from PIL import Image | |
import matplotlib.pyplot as plt | |
from os.path import isfile, join | |
from sklearn.decomposition import PCA | |
from keras.optimizers import Adam, SGD | |
from keras.layers import ZeroPadding2D | |
from keras.layers import Conv2D, MaxPool2D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (dd *opts) run() error { | |
var thread int64 | |
var names []string | |
done := make(chan bool) | |
size := getsize(*dd.src) | |
for i := int64(0); i < size; i += *dd.buffersize { | |
dstname := partfile + strconv.FormatInt(i, 10) | |
names = append(names, dstname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func copy() error { | |
src, size, err := open(dd) | |
if err != nil { | |
return err | |
} | |
defer src.Close() | |
dst, err := os.Create(dd) | |
if err != nil { | |
return err |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from patsy import dmatrix | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn import linear_model | |
%matplotlib inline | |
ipos = pd.read_csv('./scoop.csv') | |
ipos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const XMLHttpRequest = require('xhr2'); | |
const xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'http://twitter.com/DesmondANIMUS/'); | |
xhr.send(null); | |
xhr.onreadystatechange = function () { | |
var DONE = 4; // readyState 4 means the request is done. | |
var OK = 200; // status 200 is a successful return. | |
if (xhr.readyState === DONE) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from sklearn.cluster import DBSCAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Id": "66bd56ebc3a19c717b722e314efdddb3703c27120bbd79d3867cace1d6bd2787", | |
"Created": "2018-07-27T21:52:34.387739635Z", | |
"Path": "/sbin/tini", | |
"Args": [ | |
"-g", | |
"--", | |
"/docker-entrypoint.sh", | |
"neo4j" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1.0.2/dist/browser/signalr.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>SignalR 2018</title> |
NewerOlder