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 csv = require('csvtojson'); | |
const moment = require('moment'); | |
const path = './update_needed_usersv4.csv'; | |
// csv file sample (./update_needed_usersv4.csv) | |
/* | |
idx,created_at | |
130,2015-10-07 8:22 | |
131,2015-10-07 8:23 | |
132,2015-10-07 8:24 |
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
#!/bin/sh | |
# sudo ifconfig [adapter] hw ether [MAC Addr] | |
sudo ifconfig wlp58s0 down | |
sleep 1 | |
sudo ifconfig wlp58s0 hw ether AA:BB:CC:DD:EE:FF | |
sudo ifconfig wlp58s0 up |
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 tensorflow as tf | |
import numpy as np | |
x_data = np.float32(np.random.rand(2, 100)) | |
y_data = np.dot([0.100, 0.200], x_data) + 0.300 | |
b = tf.Variable(tf.zeros([1])) | |
W = tf.Variable(tf.random_uniform([1, 2], -1.0, 1.0)) | |
y = tf.matmul(W, x_data) + b |
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 tensorflow as tf | |
state = tf.Variable(0, name="counter") | |
one = tf.constant(1) | |
new_value = tf.add(state, one) | |
update = tf.assign(state, new_value) | |
init_op = tf.global_variables_initializer() |
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> | |
<head> | |
<title>Facebook Login JavaScript Example</title> | |
<meta charset="UTF-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/aws-sdk/2.7.14/aws-sdk.min.js"></script> | |
</head> | |
<body> | |
<script> | |
// This is called with the results from from FB.getLoginStatus(). |
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
var stk = []; | |
var esp = 0; | |
function push(obj) { | |
stk.push(obj); | |
esp++; | |
return; | |
} | |
function pop() { |
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 dependency package */ | |
import express from 'express'; | |
import path from 'path'; | |
import bodyParser from 'body-parser'; | |
import dotenv from 'dotenv'; | |
import morgan from 'morgan'; | |
import session from 'express-session'; | |
import expressValidator from 'express-validator'; | |
import webpackDevServer from 'webpack-dev-server'; |
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
var express = require('express'); | |
var util = require('util'); | |
var expressVaildator = require('express-validator'); | |
var app = express(); | |
app.use(expressVaildator()); | |
app.get('/*', function(req, res) { | |
req.checkQuery('email', 'Invaild email type').isEmail(); |
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
var express = require('express'); | |
var app = express(); | |
var expressVaildator('express-vaildator'); | |
app.use(expressVaildator()); |