Skip to content

Instantly share code, notes, and snippets.

View GooseNinja's full-sized avatar
🐢

Skuli Oskarsson GooseNinja

🐢
View GitHub Profile
@GooseNinja
GooseNinja / lol.js
Last active February 22, 2017 11:02
for (let i = 0; i < 10; i++) {
console.log(i);
}
// Error
console.log('360 no-scope', i);
@GooseNinja
GooseNinja / img
Last active August 17, 2016 12:56
This script is for generating and optimizing simple images with text in the center. I am using this to generate the thumbnail images on my website. http://goose.ninja
#!/bin/bash
usage ()
{
echo "This script is for generating and optimizing simple images with text in the center."
echo ""
echo "usage: sh img [-t \"Text\"] [-s image size] [-o filename.png] [-bg \"#fill color\"] [-c \"#font color\"] [-fs font_size] [-f \"Font\"] [-h | --help]"
echo ""
echo "Image Settings:"
echo " -t 'imagetext' Specify the text to be written on the image"
@GooseNinja
GooseNinja / newrails
Created May 31, 2014 15:08
This is how I create a new Rails app
Start with
$ rails new some_app -d postgresql
Next I go to
./config/application.rb
and add the following
config.generators.stylesheets = false
config.generators.javascripts = false
config.generators.helper = false
@GooseNinja
GooseNinja / Sublimepackages.md
Last active August 29, 2015 14:02
Sublime packages I use

Packages

  • AdvancedNewFile
  • All Autocomplete
  • ApplySyntax
  • Better CoffeeScript
  • Better RSpec
  • BracketHighlighter
  • Emmet
  • GitGutter
@GooseNinja
GooseNinja / Gemfile
Last active August 29, 2015 14:02
Here are my most common used gems
# Always
group :development do
gem 'spring'
gem 'thin'
gem 'better_errors'
gem 'quiet_assets'
gem 'meta_request'
end
gem 'bcrypt'
{
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Nil/Tubnil.tmTheme",
"draw_white_space": "all",
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"