Skip to content

Instantly share code, notes, and snippets.

View azbones's full-sized avatar
🎯
Focusing

Az Bones azbones

🎯
Focusing
  • Fireline Science
  • Tempe, AZ
View GitHub Profile
@azbones
azbones / gist:8892768
Created February 9, 2014 01:13
Google Developers Live BigQuery IRT Demo
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@azbones
azbones / gist:8892780
Last active August 29, 2015 13:56
Google Developers Live BigQuery-Networkx Demo
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@azbones
azbones / 2015_card.pde
Last active August 29, 2015 14:11
This is the main code for my 2015 new year's card
//This code is written in Processing which is a programming language
//for visual arts. You can download it for free at https://processing.org/
//
//Collin's attempt at modern art- exploding cherry blossoms...BOOM!
PImage img;
String[] names;
void setup(){
size(1280, 800);
smooth();
noLoop();
@azbones
azbones / random_class_assign.py
Created March 4, 2018 19:46
randomly assign list of students to a set number of groups
# randomly assign list of students to a set number of groups
import random
def partition(lst, n):
division = len(lst) / float(n)
groups = [lst[int(round(division * i)): int(round(division * (i + 1)))] for i in range(n) ]
return groups
students = []
@azbones
azbones / update_repos.sh
Last active March 7, 2018 19:06
jupyterhub scripts for cis 503
#!/bin/bash
declare -a array=("data-science" "machine-learning")
for i in $(ls -d /home/*)
do
ls $i | egrep "^data-science"
if [ $? -eq 0 ]; then
echo "repos already exist updating repos"
for repo in "${array[@]}"
do
@azbones
azbones / create_users.sh
Created March 7, 2018 18:09
scripts for jupyterhub cis 503
#!/bin/bash
while read user pass;
do
echo "User $user read from file"
egrep "^$user" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$user already exists"
else