Skip to content

Instantly share code, notes, and snippets.

View elizabethsiegle's full-sized avatar
👩‍💻

Lizzie Siegle elizabethsiegle

👩‍💻
View GitHub Profile
legend: {
show: true,
item: {
onmouseover: function(id) {
if(id== "Curry") {
document.getElementById('hoverImg').innerHTML = "<img src='img/curry.png' border=0/></a>";
document.getElementById("hoverImg").style.transitionDuration = "10s";
}
onmouseout: function(id) {
if(id== "Curry") {
if (splashWords.some(function(v) { return data.text.toLowerCase().indexOf(v) !== -1; })) {
numSplashWords += 1;
totalNumTweets += 1;
publish2();
console.log(data);
}
function processData(data) {
if (!data) return;
if (splashWords.some(function(v) { return data.text.toLowerCase().indexOf(v) !== -1; })) {
numSplashWords +=1;
totalNumTweets+=1;
publish2();
console.log(data);
}
bestFans();
function getData() {
pubnubTweet.history({
channel: channel,
count: 75,
callback: function(messages) {
pubnubTweet.each(messages[0], processData);
getStreamData();
},
error: function(error) {
console.log(error);
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@elizabethsiegle
elizabethsiegle / facebook-cookie.MD
Last active September 12, 2016 16:26 — forked from sorenlouv/facebook-cookie.MD
Get "xs" value from Facebook cookie
@elizabethsiegle
elizabethsiegle / The Technical Interview Cheat Sheet.md
Created October 19, 2016 06:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

Keybase proof

I hereby claim:

  • I am elizabethsiegle on github.
  • I am lizziepika (https://keybase.io/lizziepika) on keybase.
  • I have a public key whose fingerprint is C10E 28F7 D26D 6680 A213 FD3F 24C3 B775 C1B8 E16B

To claim this, I am signing this object:

@elizabethsiegle
elizabethsiegle / startRecording.swift
Created December 7, 2018 19:03
Complete startRecording() function for Travel the World via Speech Recognition and FlyoverKit in Swift Part 2
func startRecording() {
if recognitionTask != nil { //created when request kicked off by the recognizer. used to track progress of a transcription or cancel it
recognitionTask?.cancel()
recognitionTask = nil
}
let audioSession = AVAudioSession.sharedInstance()
do {
try audioSession.setCategory(AVAudioSession.Category(rawValue: convertFromAVAudioSessionCategory(AVAudioSession.Category.record)), mode: .default)
try audioSession.setMode(AVAudioSession.Mode.measurement)
try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
@elizabethsiegle
elizabethsiegle / what_twilio_product_are_you.json
Created May 13, 2020 22:01
Complete Autopilot questions for "What Twilio Product are you"
{
"actions": [
{
"collect": {
"name": "what_twilio_product_are_you",
"questions": [
{
"question": "1. What is your favorite color?\n A. red🔴\n B. black🖤\n C. lavender \n D. yellow",
"name": "color",
"validate": {