Skip to content

Instantly share code, notes, and snippets.

View breadplop's full-sized avatar

Brenda Thng breadplop

View GitHub Profile
@breadplop
breadplop / test.ipynb
Last active February 15, 2018 14:52
Contact/Export Utilization Histogram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@breadplop
breadplop / klipfolio-question-json.json
Created March 15, 2018 22:04
klipfolio-question-json.json
{
"data": [
{
"spend": "5.85",
"campaign_id": "23842748876360690",
"campaign_name": "AD 1 ",
"unique_clicks": "3",
"impressions": "167",
"total_action_value": "0",
"actions": [

How To Update National Data Dashboard

Sam: Delete the old UpdatePaidUsersTab folder, download the new folder and remember to unzip it! (ensure that the filename is the same!)

Step 1 Update the Paid Users Tab

with Trial start date, acquisition source and utm_campaign from the db.

  1. Open Terminal [cmd + spacebar and Type terminal]
  2. Go into the directory where this folder is kept [copy and paste into terminal: cd Downloads/UpdatePaidUsersTab + enter ]
@breadplop
breadplop / question1.py
Created November 4, 2018 07:37
BT4221 Assignment 4 Question 1 - Pima Indians Dataset
#### Create first network with Keras
from keras.models import Model
from keras.layers import Input, Dense
from keras.callbacks import ModelCheckpoint, EarlyStopping
import numpy as np
batch_size = 10
epochs = 10
validation_split = 0.1
@breadplop
breadplop / question2.py
Created November 4, 2018 09:09
BT4221 Assignment 4 Question 2
# https://paper.dropbox.com/doc/Assignment-4--AQAaS_sEpPtBSwlJT9IK8u3qAg-AbLDwYkKF1jWLBcH7aM0J
from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Model
from keras.layers import Input, Dense, Flatten
from keras.layers import Dense, Activation
from keras.layers import SimpleRNN
from keras import initializers
@breadplop
breadplop / question3.py
Created November 4, 2018 09:12
BT4221 Assignment 4 Question 3
from keras.datasets import mnist
from keras.utils import np_utils
from keras.layers import Input, Dense, Dropout, Activation, Flatten, Convolution2D, ZeroPadding2D, MaxPooling2D
from keras.models import Model
batch_size = 128
nb_classes = 10
epochs = 10
# input image dimensions
{
"rules": {
"reviewsLogin": {
".read": true,
".write": true
},
"reviews": {
".read": true,
".write": true
},
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");