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 React, { Component } from 'react'; | |
import { | |
Text, | |
View, | |
TouchableOpacity, | |
ActivityIndicator, | |
Navigator | |
} from 'react-native'; | |
import {GoogleSignin} from 'react-native-google-signin'; | |
import Firestack from 'react-native-firestack' |
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
Source: https://tc.gts3.org/cs6265/2017/l/lab04/README-tut.txt | |
==================================== | |
Lec04: Writing Exploits with PwnTool | |
==================================== | |
http://docs.pwntools.com/ | |
http://docs.pwntools.com/en/stable/intro.html |
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
export const GoogleApi = function(opts) { | |
opts = opts || {} | |
const apiKey = opts.apiKey; | |
const libraries = opts.libraries || []; | |
const client = opts.client; | |
const URL = 'https://maps.googleapis.com/maps/api/js'; | |
const googleVersion = '3.22'; | |
let script = null; |
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
cycler==0.10.0 | |
kiwisolver==1.3.1 | |
matplotlib==3.3.4 | |
numpy==1.19.5 | |
Pillow==8.2.0 | |
pyparsing==2.4.7 | |
python-dateutil==2.8.1 | |
six==1.16.0 |
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
angular.module('myApp', | |
['ngRoute', 'myApp.services', 'myApp.directives'] | |
) | |
.config(function(AWSServiceProvider) { | |
AWSServiceProvider.setArn('arn:aws:iam::<ACCOUNT_ID>:role/google-web-role'); | |
}) | |
.config(function(StripeServiceProvider) { | |
StripeServiceProvider.setPublishableKey('pk_test_YOURKEY'); | |
}) | |
.config(function($routeProvider) { |
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
angular.module('restangularDemoApp', [ | |
'restangular', | |
'ngCookies' | |
]) | |
.constant('apiKey', 'YOUR_Mongolab_API_KEY') | |
.config(function(RestangularProvider, apiKey) { | |
RestangularProvider.setBaseUrl('https://api.mongolab.com/api/1/databases/YOURDATABASE/collections'); | |
RestangularProvider.setDefaultRequestParams({ | |
apiKey: apiKey | |
}) |
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
<div ng-app="wizardApp"> | |
<div ng-controller="WizardSignupController"> | |
<h2>Signup wizard</h2> | |
<div ui-view></div> | |
</div> | |
</div> | |
<script type="text/javascript" src="/js/vendor/angular-ui-router/release/angular-ui-router.min.js"></script> | |
<script type="text/javascript"> | |
angular.module('wizardApp', [ | |
'ui.router', |
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 splitTotal = (total, n) => { | |
let arr = []; | |
let i = 0; | |
while (i < n) { | |
arr.push(Math.floor(Math.random() * total) + 1) | |
i++; | |
} | |
const sorted = [0].concat(arr, [total]).sort((a, b) => a - b); | |
let out = []; |
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 | |
np.random.seed(1) | |
# train comes from the titantic dataset provided by | |
# kaggle (https://www.kaggle.com/c/titanic/data) | |
df = pd.read_csv('./data/titanic-train.csv') | |
def preprocess(raw_data): | |
# Preprocess data |
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
def nn(X, y, hiddenLayerSize=10, learningRate=0.01, epochs=100, debug=False): | |
m = X.shape[1] | |
outputSize = y.shape[1] | |
# Make our model | |
model = dict( | |
w0 = np.random.randn(m, hiddenLayerSize), | |
w1 = np.random.randn(hiddenLayerSize, outputSize) | |
) | |