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 / 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 / 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 / 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
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 / 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.
labuser@rsdirtylnx:/home/incoming/relayserver/quicksetup_apache$ sudo ./ap-setup.sh
+ source /home/incoming/relayserver/quicksetup_apache/__funcs__.sh
./ap-setup.sh: 12: ./ap-setup.sh: source: not found
+ clear
+ echo
+ echo You are about to execute the Relay Server quick setup script for
You are about to execute the Relay Server quick setup script for
+ echo Apache. Output of this setup script will be captured in ap-setup.log.
Apache. Output of this setup script will be captured in ap-setup.log.
<!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 -->
@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;
@sorahn
sorahn / mario-odyssey.mmd
Created November 14, 2017 04:04
Super Mario Odyssey - mermaid flowchart.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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: