Skip to content

Instantly share code, notes, and snippets.

View solon's full-sized avatar
🐝

Brian Solon solon

🐝
View GitHub Profile
<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<title>SFPC: The First Class</title>
<!-- links to javascript and css -->
<link href="sfpc.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<script src="http://sfpc.io/thefirstclass/libs/jquery-1.9.1.js.pagespeed.jm.It7AQ2eLvN.js" type="text/javascript"></script>
<script src="http://sfpc.io/thefirstclass/sfpc.js.pagespeed.jm.hKYJAas1n8.js" type="text/javascript"></script>
Verifying my Blockstack ID is secured with the address 1KZJLAGvRwPM7r2otKynM6vxbbFj5KgAGp https://explorer.blockstack.org/address/1KZJLAGvRwPM7r2otKynM6vxbbFj5KgAGp

Keybase proof

I hereby claim:

  • I am solon on github.
  • I am briansolon (https://keybase.io/briansolon) on keybase.
  • I have a public key whose fingerprint is EA0B 3A40 844F 46DB 5349 9C3A 57F0 DFC9 BAF5 8C7F

To claim this, I am signing this object:

@solon
solon / Dockerfile
Created March 8, 2016 20:16
Dockerfile to install PostgreSQL 9.5 with en_IE.UTF-8 locale
FROM postgres:9.5
RUN localedef -i en_IE -c -f UTF-8 -A /usr/share/locale/locale.alias en_IE.UTF-8
ENV LANG en_IE.utf8
# For SCSS-Lint v0.31.0
linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false
BorderZero:
@solon
solon / simpleskulpt.html
Last active September 29, 2015 19:59 — forked from bnmnetp/simpleskulpt.html
Here is about the simplest example I can think of that gets you a working skulpt environment. This little sample shows regular python as well as importing a module.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt-stdlib.js" type="text/javascript"></script>
</head>
<body>
@solon
solon / exercise_a.txt
Last active September 29, 2015 14:27 — forked from aparrish/exercise_a.txt
Programming Exercise A for RWET
RWET Programming Exercise A
Text processing on the UNIX command line
---
Step 1. Write the command to download the text file with the following URL to
your computer with the filename "frost.txt". (Hint: You'll need to use the
"curl" command, and possibly redirection with ">").
Here's the URL:
http://rwet.decontextualize.com/texts/frost.txt
@solon
solon / gist:4623816
Created January 24, 2013 16:01
Example HTML5 video tag that works (with SublimePlayer) on the widest range of devices including Android 2.2. Note media queries and absence of 'type' attributes on source elements. Android 2.2 won't play the video without these considerations.
<video width="1280" height="720" style="width:100%; height:auto;" id="videoPlayer"
poster="http://livelygroup-companies.s3.amazonaws.com/sites/505c81c854558f2db8000004/content_entry50609d9954558f7ad8000057/50ad003dd8bf7000020000e5/files/lg_pullout_carousel.jpg" preload="none" data-autoresize="fit" data-uid="lg-pullout-generic" data-name="Pullout">
<source media="screen and (min-device-width: 768px)" data-quality="hd" src="http://livelygroup-companies.s3.amazonaws.com/sites/505c81c854558f2db8000004/content_entry50609bf754558f7ad800003b/50acfc92d8bf7000020000ac/files/lg_pullout_generic_16x9_high.mp4">
<source media="screen and (max-device-width: 767px)" data-quality="base" src="http://livelygroup-companies.s3.amazonaws.com/sites/505c81c854558f2db8000004/content_entry50609bf754558f7ad800003b/50acfc92d8bf7000020000ac/files/lg_pullout_generic_16x9_baseline.mp4">
<source src="http://livelygroup-companies.s3.amazonaws.com/sites/505c81c854558f2db8000004/content_entry50609bf754558f7ad800003b/50acfc92d8bf7000
@solon
solon / padrino-cache-invalid-byte-seq-utf8.rb
Created April 2, 2012 01:04
padrino-cache ArgumentError: invalid byte sequence in UTF-8
require 'redis'
require "active_support/core_ext/string/multibyte"
require "active_support/core_ext/object/blank"
redis = Redis.new
good_string = "...............................................................................\n\n...............................................................................\n\n...............................................................................\n\n...............................................................................\n\n\n.........................................................."
bad_string = "...............................................................................\n\n...............................................................................\n\n...............................................................................\n\n...............................................................................\n\n\n..........................................................\n"
@solon
solon / gist:963011
Created May 9, 2011 18:09 — forked from bernerdschaefer/gist:962715
some bash helpers for working with padrino projects
alias rake="time rake"
# Run `padrino rake` when inside a padrino project,
# otherwise run the normal rake command.
function rake () {
if [[ -f ".components" ]]; then
padrino rake
else
ruby -S rake
fi