Skip to content

Instantly share code, notes, and snippets.

View davidhariri's full-sized avatar

David Hariri davidhariri

View GitHub Profile

##Hi there! 👋

We're taking some time to update Volley and will be back shortly. Check Twitter for an update on when we're live again

Thanks for your patience 🙏

David

@davidhariri
davidhariri / gist:0f004913d9e46c207266
Last active August 29, 2015 14:23
New in Volley 1.0

#New in Volley 1.0 ##Built

  • Complete rewrite of the app (Javascript only, baby!)
  • Brand new API
  • Mobile-friendly
  • Public replies
  • Activity Inbox
  • Topics
  • Publicly available for everyone (no long invite only)
@davidhariri
davidhariri / responsive-grid.html
Created September 14, 2015 15:55
A simple mobile responsive grid for a Volley answer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style media="screen">
body {
margin: 0;
padding: 0;
@davidhariri
davidhariri / all-the-links.md
Last active September 15, 2015 09:20
All of my links to blogs, resources, tutorials and people I find inspiring
import sys
import colour
import random
import svgwrite
import math
from datetime import datetime
# i redacted most of our colors for testing purposes
palette = [ "#ecc3af", "#ac3f3d", "#fee2cd"]
{
"does_this" : "do the same thing?"
}
class ModelStore(object):
def __init__(
self,
s3_id,
s3_key,
s3_bucket,
should_compress=True,
cache_expiry=180,
profile=False,
should_cache=True
@davidhariri
davidhariri / convert
Created May 15, 2016 17:15
Convert MKV to iTunes MP4 without transcoding video
ffmpeg -i "movie.mkv" -c:v copy -c:a aac -b:a 256k -strict -2 "movie.mp4"
@davidhariri
davidhariri / fizzbuzz.swift
Created March 12, 2017 15:41
DRY-er FizzBuzz Solution in Swift
// Dry FizzBuzz solution for Swift 3 by David Hariri
// Made it for the Treehouse Swift Basics class
import Foundation
func isMultipleOf(n: Int, m: Int) -> Bool {
return n % m == 0
}
func fizzBuzz(n: Int) -> String {
@davidhariri
davidhariri / baseball_fighters.py
Created May 9, 2017 16:35
Baseball Fighter Generator
import random
f_names = [
"Sleve",
"Onson",
"Darryl",
"Anatoli",
"Rey",
"Glenallen",
"Mario",