Skip to content

Instantly share code, notes, and snippets.

Steve Jabour atsjj

Block or report user

Report or block atsjj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch File",
"protocol": "inspector",
"request": "launch",
@atsjj
atsjj / wedisagree-atsjj.zsh-theme
Last active Jan 19, 2017
My ZSH Theme, based on `wedisagree`.
View wedisagree-atsjj.zsh-theme
# On a mac with snow leopard, for nicer terminal colours:
# - Install SIMBL: http://www.culater.net/software/SIMBL/SIMBL.php
# - Download'Terminal-Colours': http://bwaht.net/code/TerminalColours.bundle.zip
# - Place that bundle in ~/Library/Application\ Support/SIMBL/Plugins (create that folder if it doesn't exist)
# - Open Terminal preferences. Go to Settings -> Text -> More
# - Change default colours to your liking.
#
# Here are the colours from Textmate's Monokai theme:
#
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
classNameBindings: ['isVisible:show']
});
@atsjj
atsjj / dopewars.rb
Created Sep 5, 2013
Homebrew Formula for Dopewars 1.5.12
View dopewars.rb
require 'formula'
class Dopewars < Formula
homepage 'http://dopewars.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz'
sha1 'ad46a38e225680e591b078eeec563d47b96684bc'
depends_on 'gettext' => :build
depends_on 'glib' => :build
depends_on 'gtk+' => :build
@atsjj
atsjj / .gitconfig
Last active Dec 17, 2015
My gitconfig
View .gitconfig
[user]
name = atsjj
email = atsjj@email.com
[core]
excludesfile = /Users/lname/.gitignore_global
[push]
default = current
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
View code.html
<button id="btn">Press</button>
<div id="box"></div>
View .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="wedisagree-sjabour"
# Example aliases
@atsjj
atsjj / gist:5341658
Last active Dec 15, 2015
Wanted to try writing my own SHA256 class in CoffeeScript. Needed to warm back up after a long weekend, where I didn't touch a computer. Didn't get too far today, spent most of my time reading the spec...
View gist:5341658
# So far, this is being based off of http://www.movable-type.co.uk/scripts/sha256.html
# http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
class SHA2
# §5.3, *Setting the Initial Hash Value*
# §5.3.3, *SHA-256*
H = [
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
]
# §4.2.2, *SHA-224 and SHA-256 Constants*
View gist:4166255
Math.perm = (n = 1, i, s = 0) ->
i = (if n <= 1 then 1 else n) unless i?
return n if i <= 1 or n <= 1 or i <= s + 1
i--
Math.perm n * i, i, s
stack = []
stack.push (Math.perm(50,null,44) / Math.perm(6)) / i for i in [1..100]
View ember-cli-build.js
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
'ember-cli-foundation-sass': {
'modernizr': true,
'fastclick': true,
'foundationJs': 'all'
}
You can’t perform that action at this time.