I hereby claim:
- I am azybler on github.
- I am haowooilim (https://keybase.io/haowooilim) on keybase.
- I have a public key ASD1QMoPhA0KvzyA5N4RGXCrogVrn6yq8AOVReqH_bUzcAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'''Train a simple deep CNN on the CIFAR10 small images dataset. | |
''' | |
from __future__ import print_function | |
import keras | |
from keras.datasets import cifar10 | |
from keras.preprocessing.image import ImageDataGenerator | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Activation, Flatten, Conv2D, MaxPooling2D | |
import os |
'''Train a EffNet CNN on the CIFAR10 small images dataset. | |
https://towardsdatascience.com/3-small-but-powerful-convolutional-networks-27ef86faa42d | |
''' | |
from __future__ import print_function | |
import keras | |
from keras.datasets import cifar10 | |
from keras.preprocessing.image import ImageDataGenerator | |
from keras.models import Model |
Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.6
// before | |
var schedulesTmp = $('form#interview-schedule input[name^="schedule-datetime"]'); | |
var schedules1 = []; | |
schedulesTmp.each(function() { | |
if (null !== $(this).datepicker('getDate')) { | |
schedules1.push($(this).val()); | |
} | |
}); | |
alert(schedules1.length + ' ' + schedules1[0] + ' '); | |
function OldLogger (type) { | |
this.writeToLog = function(message) { | |
//To stuff. | |
}; | |
} | |
function NewLogger (type) { | |
this.doLog = function(message) { | |
//To stuff. | |
}; |
/** "Implementor" */ | |
interface DrawingAPI { | |
public void drawCircle(double x, double y, double radius); | |
} | |
/** "ConcreteImplementor" 1/2 */ | |
class DrawingAPI1 implements DrawingAPI { | |
public void drawCircle(double x, double y, double radius) { | |
System.out.printf("API1.circle at %f:%f radius %f\n", x, y, radius); | |
} |
!function(window, document, undefined) { | |
var toStr = Object.prototype.toString; | |
window.SJ = { | |
// Check if the variable is an array. | |
IsArr: function(obj) { | |
return toStr.call(obj) === '[object Array]'; | |
}, | |
// Check if the variable is a function. | |
IsFunc: function(obj) { |
var baseUrl = 'http://www.test.com/'; | |
var Notification = { | |
ajaxFrontendLock: false, // to block user-triggered ajax call. | |
ajaxBackendLock: false, // to block backend-triggered ajax call. | |
ajaxTimeout: 5000, // 5 seconds. | |
getListUrl: baseUrl + 'notifications/get-list/', | |
getUnreadCountUrl: baseUrl + 'notifications/get-unread-count/', | |
getNewCountPoolingInterval: 10000), // 10 seconds. | |
markAsReadUrl: baseUrl + 'notifications/mark-as-read/', | |
notificationBtn: 'a#notification-popover-toggle', |
var http = require('http'); | |
var Chimera = require('chimera').Chimera; | |
var fs = require('fs'); | |
var c = new Chimera(); | |
var server = http.createServer(function(req, res) { | |
if (req.method === 'GET' && req.url === '/') { | |
res.writeHead(200, { 'Content-Type': 'text/html' }); | |
res.end(" \ | |
<html> \ |