Skip to content

Instantly share code, notes, and snippets.

View bright-spark's full-sized avatar
♥️
Tinkering with stuff!

Myburgh bright-spark

♥️
Tinkering with stuff!
View GitHub Profile
@bright-spark
bright-spark / sphp.sh
Created January 19, 2021 19:32 — forked from rhukster/sphp.sh
Easy Brew PHP version switching
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
osx_patch_version=${osx_patch_version:-0}
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
@bright-spark
bright-spark / flexi-flux-aka-ff131313-001-just-click.markdown
Created February 17, 2019 00:27
Flexi-Flux aka [FF131313.001] Just Click!
@bright-spark
bright-spark / browser-detect.js
Created September 29, 2018 23:31 — forked from devfred/browser-detect.js
javascript: Browser Detection
(function( undefined ){
/* Apple Device Webkit Browsers */
var isIdevice = /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent);
if (isIdevice){
document.getElementsByTagName('body')[0].className += ' iphone ipod ipad';
}
var isIphone = /(iPhone).*AppleWebKit/i.test(navigator.userAgent);
if (isIphone){
document.getElementsByTagName('body')[0].className += ' iphone';
@bright-spark
bright-spark / browser_detect.js
Created September 29, 2018 23:30 — forked from 2107/browser_detect.js
JavaScript: Detect Browser
// browser detect
var BrowserDetect = {
init: function() {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function(data) {
for (var i = 0; i < data.length; i++) {
var dataString = data[i].string;

New Computer Setup

Last tested using Mac OS X 10.8 Mountain Lion

Before Wiping Original Install

  • Backup .ssh folder to avoid having to regenerate codes for services such as Heroku and Github.
@bright-spark
bright-spark / index.html
Last active January 2, 2017 03:59
koding : flexi-flux minimal
<iframe src="http://liquoricegirls.com/" border="0" seamless="seamless"></iframe>
@bright-spark
bright-spark / flexi-flux-minimal-template.markdown
Last active December 10, 2016 10:15
FLEXI-FLUX Minimal Template
@bright-spark
bright-spark / index.html
Created December 10, 2016 09:59
MARMITE HTML5 Audio Player
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Stainless HTML5 Audio Player</title>
@bright-spark
bright-spark / Pulse effect with css3 (Tinder like).markdown
Created June 18, 2016 14:41
Pulse effect with css3 (Tinder like)

Tinder Animation (GSAP)

Tinder's swiping and like/dislike animation (buttons work as well as swiping 'drag and drop'). Made with GSAP.

A Pen by Bright Sparks on CodePen.

License.