Skip to content

Instantly share code, notes, and snippets.

View Sufuninja's full-sized avatar

William Campbell Sufuninja

  • Tax Advisors Group, LLC
  • Boerne Texas
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sufuninja on github.
  • I am sufuninja (https://keybase.io/sufuninja) on keybase.
  • I have a public key ASDT1uEv2uL4dsb5uHSOXDSzux0zfWLOQWI49XNrqLFQywo

To claim this, I am signing this object:

#!/bin/bash
# Codeup Students:
# 1. click on the "Raw" button on the top right of this file
# 2. copy the entire contents (cmd + a, cmd + c)
# 3. with the contends of this script on your clipboard, type the following
# command in your terminal
#
# bash -c "$(pbpaste)"
@Sufuninja
Sufuninja / Simple-Thinking-Simon.md
Last active August 18, 2016 20:46
How I start to break things down into steps before I start writing code.

Simple Thinking Simon

This is just an example of how I might begin the thought process of breaking it down into smaller digestible chunks. In no way is this "the correct" or only way to approach this project. There are many working solutions. The message I want to convey, is the level of clarity and direction that can be found when we challenge ourselves to express our ideas on "paper" first. Try to imagine that you are explaining each step to a five year old.

Simple Simon Game Play

A description of what expected experience should be.

The game starts off when a random color flashes and and begins the first part of a sequence that the player must mimic. After the player has correctly selected the identical color, the game repeats the first color and at random adds a second color to the sequence. The game goes on. A new random color is added to the sequence and the player replays the sequence from the beginning until the memory of the player fails them and a wrong color is selected ending the game

// Narcissistic Numbers
// A narcissistic number is a non-negative integer (n) with m digits where the sum of all the individual digits raised to the power m is equal to n.
// For example:
// If n is 153, then m (the number of digits) is 3 and:
// 13 + 53 + 33 = 1 + 125 + 27 = 153

#Geeks Who Drink Pub Trivia

##What is this? As described by their website (linked above), Geeks Who Drink is an organization that hosts quizzes around the country every day of the week.

##Place/Time ###South Town 101, 101 Pereida, 7PM-9PM, Mondays/Thursdays

###Next time we're going is Thursday, July 28. We try to go weekly and we'll keep this updated so bookmark this page to keep up with the schedule!

@Sufuninja
Sufuninja / Useful-Keyboard-Shortcuts.md
Last active July 18, 2016 21:26
Shortcuts for mac, sublime and command line bash.

Keyboard Shortcuts

Drill cli commands and keyboard shortcuts so that they become muscle memory. With a few key-presses, we can navigate and execute commands wherever we want on our system. As a developer, your keyboard is your instrument. It's the interface between your mind and body. Developers cast spells with a few key-presses. Wizards flourish their wands and use magic words to execute their commands; Developers use keyboard commands to reach across space (file systems) and time (with version control like git). Developers conjure things into existence and alter them with a few key-presses. Illusionists use elaborate tricks and deception to do the same thing...


@Sufuninja
Sufuninja / active-page.js
Created April 29, 2016 16:22
Sets page link to active by grabbing current page url using jQuery.
$(document).ready(function(){
"use strict"
var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/')+1);
// lose php
var whichPage = filename.substring(0, filename.length - 4);
console.log(whichPage);
<?php
// Tutorial from http://256cats.com/how-to-extract-data-from-github-api-php-tutorial/
require_once 'vendor/autoload.php';
use Milo\Github; //https://github.com/milo/github-api/
header('Content-Type: application/json');
$api = new Github\Api;
@Sufuninja
Sufuninja / fallthrough.php
Created April 19, 2016 20:14 — forked from CodeupInstructors/fallthrough.php
An example of using switch/case fall through and continue to build a simple comparison script
<?php
$values = array(
array(7, 7),
array(20, 52),
array('stuff', 'junk'),
array('alpha', 'Beta'),
array('abcdef', false),
array(44.2, 7.9),
array(false, false),