Skip to content

Instantly share code, notes, and snippets.

View sorahn's full-sized avatar
🎩

Daryl Roberts sorahn

🎩
  • Tovia, LLC
  • Atlanta
View GitHub Profile
@sorahn
sorahn / README.md
Created September 10, 2020 11:10 — forked from jdennes/README.md
Convert a directory of .ogg files to .mp3 files
  • You need ffmpeg installed. If you have Homebrew installed on a Mac, you can do this by running:

    brew install ffmpeg
    
  • Put process.sh in directory containing .ogg files.

  • Ensure it's executable:

@sorahn
sorahn / Laws of Computer Programming.md
Last active September 15, 2023 17:54
COMPUTER© 1980 ART 101 Limited, Atlanta Georgia - Kenneth Grooms

laws of computer programming

  • any given program, when running, is obsolete.
  • if a program is useless, it will have to be documented.
  • if a program is useful, it will have to be changed.
  • any program will expand to fill all available memory.
  • the value of a program is proportional to the weight of its output.
  • program complexity grows until it exceeds the capability of the programmer to maintain it.
  • make it possible for programmers to write in english and you will find that programmers cannot write in english.

rules of pratt

@sorahn
sorahn / mario-odyssey.mmd
Created November 14, 2017 04:04
Super Mario Odyssey - mermaid flowchart.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sorahn
sorahn / side-shadow.scss
Last active August 29, 2015 14:16
Generate an "inset" shadow on a single side of a div.
//
// @author Daryl Roberts
// @license MIT
// @url https://gist.github.com/sorahn/7915cae6c820e351158f
//
@mixin side-shadow($shadow, $side, $base-size: 50px) {
// If you need to make shadows larger than 50px, you can
// override the base size.
@sorahn
sorahn / SassMeister-input.scss
Last active August 29, 2015 14:15
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
//
// @author Daryl Roberts
// @license MIT
//
@mixin side-shadow($shadow, $side, $base-size: 50px) {
@sorahn
sorahn / SassMeister-input.scss
Created February 6, 2015 23:34
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
@mixin appearance($var) {
-webkit-appearance: $var;
-moz-appearance: $var;
appearance: $var;
}
@sorahn
sorahn / SassMeister-input.scss
Created October 10, 2014 02:30
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
// Ratings.
$ranks-color: gold !default;
@mixin clearfix() {
content: "clearfix";
}
@sorahn
sorahn / gist:9442634
Created March 9, 2014 03:46
Simple hex helpers.
# Parse ini style numbers in strings.
# hex = '$123ABC'
# dec = '123456'
String::getHex = -> parseInt @, 16
String::iniHex = -> if "#{@.charAt 0}" is '$' then do "#{@.slice 1}".getHex else +@
@sorahn
sorahn / dabblet.css
Created January 23, 2014 17:58
css gradient for triangle shaped arrow (SO)
/**
* css gradient for triangle shaped arrow (SO)
* http://stackoverflow.com/q/12431596/1397351
*/
.shape {
float: left;
position: relative;
border: 1px solid #ccc;
border-right: none;
width: 240px; height: 80px;
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">
<style>
</style>
<!-- none of the rest of the tags are required for html5, wee! -->
<!-- body -->