I hereby claim:
- I am igneous on github.
- I am nanosleep (https://keybase.io/nanosleep) on keybase.
- I have a public key ASChXOMzx8FXtylXj6RCtNRDrAxGX-KJ7oJcIbGaZtpanwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # cidr.rb | |
| # (mostly by charles hooper, with cidr notation support tacked on by bwolfe) | |
| # Copyright (c) 2014 Bucky Wolfe | |
| # | |
| # Permission to use, copy, modify, and distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # |
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'open-uri' | |
| class MyPackage | |
| # MyPackage.new :boxoh_api_key => "something", | |
| def initialize(p={}) | |
| @api_key = p[:boxoh_api_key] | |
| end |
| #!/bin/bash | |
| # Author: John Wolfe <bjw@onwav.com> | |
| # Last Modified: Mar 24, 2011. 18:20 CDT | |
| # License: zlib/libpng | |
| # Declare git_ps1 and normal_ps1 in your bashrc or this file, set PROMPT_COMMAND='dotgitinvestigate >/dev/null 2>&1' in your bashrc. | |
| # Be sure to use single quotes in the declaration of your ps1s, so the variables get evaluated in this file rather than at the time of declaration. | |
| # Example git_ps1='[\[${bldblu}\]\u\[${txtwht}\]@\[${bldwht}\]\h\[${txtrst}\]:\[${txtpur}\]\W\[${txtrst}\]\[${txtgrn}\]($branch:${treeish:0:5})\[${txtrst}\]]$ ' | |
| # Example normal_ps1='[\[${bldblu}\]\u\[${txtwht}\]@\[${bldwht}\]\h\[${txtrst}\]:\[${txtpur}\]\W\[${txtrst}\]]$ ' | |
| # For the shell color variables in previous examples, include: https://gist.github.com/886087 in this file (or your bashrc) with ". /path/to/bashrc-colors.sh" |
| #!/bin/bash | |
| txtblk='\e[0;30m' # Black - Regular | |
| txtred='\e[0;31m' # Red | |
| txtgrn='\e[0;32m' # Green | |
| txtylw='\e[0;33m' # Yellow | |
| txtblu='\e[0;34m' # Blue | |
| txtpur='\e[0;35m' # Purple | |
| txtcyn='\e[0;36m' # Cyan | |
| txtwht='\e[0;37m' # White | |
| bldblk='\e[1;30m' # Black - Bold |
| #!/usr/bin/luajit2 | |
| require "socket" | |
| require "LuaXml" | |
| io.stdout:setvbuf "no" | |
| --zipcode = 38501 | |
| function round(number, decimal) | |
| local multiplier = 10^(decimal or 0) | |
| return math.floor(number * multiplier + 0.5) / multiplier |
| #!/bin/bash | |
| # Takes three args: <day> <month(s)> <year> | |
| echo $1 $2 $3 | |
| echo "Day: $1" | |
| OLDIFS="$IFS" | |
| IFS=',' read -ra months <<< "$2" | |
| IFS="$OLDIFS" | |
| if [[ "${#months[@]}" -gt "1" ]];then |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Centering</title> | |
| <style type="text/css" media="screen"> | |
| body, html {height: 100%; padding: 0px; margin: 0px;} | |
| #outer {width: 100%; height: 100%; overflow: visible; padding: 0px; margin: 0px;} | |
| #middle {vertical-align: middle} | |
| #centered {width: 90%; height: 90%; border: 1px solid gray; margin-left: auto; margin-right: auto; text-align:center;-moz-box-shadow: 5px 5px 3px #222;-webkit-box-shadow: 5px 5px 3px #222;box-shadow: 5px 5px 3px #222;} |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Centering</title> | |
| <style type="text/css" media="screen"> | |
| body, html {height: 100%; padding: 0px; margin: 0px;} | |
| #outer {width: 100%; height: 100%; overflow: visible; padding: 0px; margin: 0px;} | |
| #middle {vertical-align: middle} | |
| #centered {width: 90%; height: 90%; border: 1px solid gray; margin-left: auto; margin-right: auto; text-align:center;} |