Skip to content

Instantly share code, notes, and snippets.

Philip Horger campadrenalin

Block or report user

Report or block campadrenalin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@campadrenalin
campadrenalin / flutter.go
Last active Jun 7, 2019
Flutter scaffolding proposal
View flutter.go
import "github.com/flutter/flutter"
import . "scaffold" // scaffold.go
func (m *MyHomePage) Build(ctx flutter.BuildContext) flutter.Widget {
return Scaffold{
AppBar: AppBar{
Title: Text{ Text: "My Home Page"},
},
Body: Center{
Child: Column{
@campadrenalin
campadrenalin / recipe.md
Last active Aug 29, 2015
Cold Brew Coffee recipe
View recipe.md

PHILIP'S COFFEE RECIPE:

  • 1 large container for storage (I keep mine in the fridge)
  • 1 sealable container, ~3cups
  • 1 stapler, with staples
  • 3 cups water
  • 2/3 cups coffee grounds
  • 1 Melitta #6 Filter

Put the grounds in the filter, which is more-or-less conical. Squish the filter a bit flatter, then fold the top of the filter down twice (give yourself room to do so). Put a staple right in the middle of that double-folded portion, then staple halfway between the middle and each end (3 staples so far). Fold the ends over toward the middle, and staple those down. That's your coffee bag.

@campadrenalin
campadrenalin / css_resources.md
Created Jan 30, 2014 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@campadrenalin
campadrenalin / python_resources.md
Created Jan 30, 2014 — forked from jookyboi/python_resources.md
Python-related modules and guides.
View python_resources.md

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@campadrenalin
campadrenalin / 0_reuse_code.js
Created Jan 30, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@campadrenalin
campadrenalin / gist:3689141
Created Sep 10, 2012
Hawkthorne audio error data as printed to STDERR
View gist:3689141
AL lib: pulseaudio.c:612: Context did not connect: Access denied
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver return
ed error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned er
ror: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned err
or: No such file or directory
View Instructions.markdown

Installation

Download all the other files in this gist to /usr/bin. You also want to either copy or symlink cjdroute into /usr/bin as well, with EITHER of the following commands, but not both:

sudo cp <full path to cjdroute> /usr/bin

sudo ln -s <full path to cjdroute> /usr/bin/cjdroute

Replace the bracketed sections with the actual path, of course. There should be no brackets in the commands you actually use. Unless you have really weird folder names.

@campadrenalin
campadrenalin / main.md
Created Jan 25, 2012
Getting started with Meshnet
View main.md

Getting started with Meshnet

This document is for people who want to help but have no technical knowledge. It assumes you won't be getting involved in squabbles over which relay technology to use, etc.

Step 1: Set up CJDNS

One of the few things widely agreed upon at the time of this writing is the use of CJDNS. Currently Windows is not supported, but if you have Linux or can run Linux in a virtual machine, you can follow the step-by-step instructions lower on that page to install and start up an instance of CJDNS on your system. If you're using Ubuntu 11.10 (latest version), you can follow these simplified instructions.

One thing you should know is cjdns currently isn't a wireless meshnet. A physical meshnet consisting of nodes geographically close to each other is a long way off. Instead, cjdns offers a "mixnet"-like system. cjdns is routable over the current Internet, so this means right now its like a giant VPN (virtu

You can’t perform that action at this time.