Skip to content

Instantly share code, notes, and snippets.

View levibostian's full-sized avatar

Levi Bostian levibostian

View GitHub Profile
@levibostian
levibostian / gist:f87dde57a72414b1b47347a8bf88e75e
Created April 3, 2018 15:38
Banned words Levi makes apps Twitch chat
anal
anus
arse
ballsack
balls
bastard
bitch
biatch
blowjob
blow job
@levibostian
levibostian / spdy_disabled_in_chrome
Created April 7, 2017 01:52 — forked from ankit-rakha/spdy_disabled_in_chrome
Google Chrome with SPDY disabled and set it to use System SSL
MAC OS X 10.8.3
$ cd /Applications/Google\ Chrome.app/Contents/MacOS
$ mv Google\ Chrome Chrome
Copy the following 2 lines:
#!/bin/sh
/Applications/Google\ Chrome.app/Contents/MacOS/Chrome --use-spdy=off --use-system-ssl
@levibostian
levibostian / .vimrc
Created April 5, 2017 18:51
My vimrc for Mark. In case he wants it.
" for 4 spaces indenting and auto-indent
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
" for makefiles, use tabs instead of spaces:
if has ("autocmd")
filetype on
autocmd FileType make setlocal noexpandtab
@levibostian
levibostian / post.md
Last active April 15, 2020 20:31
webpack, Tachyons, pug, Vue.js web app.

Today, single page web apps are driving many websites that we use each and every day. Instead of having your browser request a new web page for each and every action you perform on a web page, single page web apps may load all in one request to smoothly and quickly transition with every action you perform.

When building single page web apps, you may decide to retrieve all of the HTML, CSS and Javascript with one single page load or dynamically load these resources as the user moves about your site. Either way, it can be a pain to bundle all of these assets together for the end user to download from your web server. This is where webpack comes into play.

webpack does all of the heavy lifting bundling all of your HTML, CSS and Javascript together. If you write your site all from scratch or depend on dependencies from npm, webpack takes care of packaging it all together for you. It has the ability to take your single page web app, cut out all of the code you don't need, then packa

@levibostian
levibostian / ActionBarDrawerToggleHoneycomb.java
Last active February 14, 2017 17:51
**Don't delete me. Public shared.** Android navigation drawer animation duration.Blog post: levibostian.com/blog/android-navigation-drawer-animation-duration/index.html*Note:* Does not include all files required to start app. Only files that require editing as discussed in blog post.
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software