Skip to content

Instantly share code, notes, and snippets.

View ZacharyJacobCollins's full-sized avatar
☁️
head in the clouds

Zachary Collins ZacharyJacobCollins

☁️
head in the clouds
View GitHub Profile
let entries = [];
let selectorIds = [
{
'title': 'HomeValueIndex',
'dataTypeElId': 'median-home-value-zillow-home-value-index-zhvi-dropdown-1',
'geographyElId': 'median-home-value-zillow-home-value-index-zhvi-dropdown-2',
},
{
'title': 'RentalIndex',
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
<template>
<ul class="list list-inline list-unstyled float-left ml-3">
<!-- Button -->
<button class="btn btn-ghost" data-toggle="dropdown">
<i class="md-icon md-theme-default md-icon-font">add</i>
Add Filter
</button>
<!-- Dropdown -->
@ZacharyJacobCollins
ZacharyJacobCollins / profile
Last active April 8, 2019 14:07
bash - osx
alias mod="vim ~/.bash_profile && source ~/.bash_profile"
alias personal="cd ~/personal"
#git
alias bl="cd ~/personal/beatingloneliness.com"
alias dev="git checkout v1-dev"
alias ga="git add -A"
alias gc="git commit -m "
alias gh="git push origin HEAD"
alias gb="git branch"
<?php
CONST TEXT = 'Given an arbitrary text document written in English, write a program that will generate a concordance, i.e. an alphabetical list of all word occurrences, labeled with word frequencies. Bonus: label each word with the sentence numbers in which each occurrence appeared.';
//Build concordance table
function build_table($text)
{
$table = [];
$text = format_text($text);
@ZacharyJacobCollins
ZacharyJacobCollins / foo.log
Created June 24, 2018 03:39 — forked from ibeex/foo.log
Flask logging example
A warning occurred (42 apples)
An error occurred
* Sets up specific DI container configuration
*
* @param AuthSession $auth_session
*/
protected function setup_container(AuthSession $auth_session)
{
$this->container->set('provider', Inflector::camelize($auth_session->get_provider()->get_name()));
$this->container->set('provider.attributes', Inflector::camelize($auth_session->get_implementation()->get_name()));
foreach ($this->config->get_container() as $class => $definition)
phrases = ['clean message', 'what is new'];
function test_phrase(phrase) {
var input = document.getElementById('edw-test-utteranceTextField');
input.value = phrase;
}
test_phrase(phrases[1]);
fswatch [opts] -0 <file/dir here> ... | xargs -0 -n1 -I{} echo hi
@ZacharyJacobCollins
ZacharyJacobCollins / sh
Created June 4, 2017 02:59
Install open cv ubuntu
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev