Skip to content

Instantly share code, notes, and snippets.

View auser's full-sized avatar

Ari auser

View GitHub Profile
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'
@auser
auser / tutorial.txt
Created June 23, 2021 14:45 — forked from JamesMenetrey/tutorial.txt
PwnTools; example of usage
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
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;
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
@auser
auser / app.js
Last active January 26, 2021 01:59
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) {
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
})
<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',
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 = [];
@auser
auser / data.py
Last active April 16, 2020 18:09
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
@auser
auser / model.py
Last active April 16, 2020 18:08
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)
)