Skip to content

Instantly share code, notes, and snippets.

@maads
maads / gist:6ad1e0dc667cf9a8ecc7
Created November 28, 2014 00:12
ember-cli-publishToGithubPages
#!/bin/bash
git branch -D gh-pages
git push origin --delete gh-pages
git checkout -b gh-pages
ember build --environment production
git rm -rf app config public tests
git rm -rf Brocfile.js bower.json package.json testem.json
git rm -rf .bowerrc .editorconfig .jshintrc .travis.yml
mv dist/* .
rm -rf dist
@maads
maads / gist:10e804bcd2e2341b8e64
Last active August 29, 2015 14:13
FizzBuzz division
// FizzBuzz without modulo
public class Program
{
public static void Main()
{
for (int i = 1; i <= 100; i++)
{
Console.WriteLine(FizzBuzz(i));
}
@maads
maads / gist:050af85f2f1c9971c321
Last active February 20, 2019 07:44
.gitconfig
[push]
default = simple
followTags = true
[core]
autocrlf = true
editor = emacs
# editor = "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
# sshCommand = "ssh -v"
@maads
maads / gist:de11614f393dd4d7c3c7
Created April 27, 2015 12:01
sublime settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
"font_size": 14,
"draw_white_space": "all",
"trim_trailing_white_space_on_save": true,
"translate_tabs_to_spaces":true,
"draw_minimap_border":true,
"highlight_line": false,
"match_brackets": true,
@maads
maads / gist:f49fb1de42c54719a1c7
Last active February 20, 2019 07:39
VS Code config
{
"editor.renderWhitespace": "boundary",
"editor.formatOnType": true,
"editor.insertSpaces": true,
"editor.dragAndDrop": true,
"editor.wordWrap": "bounded",
"search.exclude": {
".git": true,
"node_modules": true,
"bower_components": true,
@maads
maads / keybase.md
Created June 5, 2015 10:25
keybase.md

Keybase proof

I hereby claim:

  • I am maads on github.
  • I am maads (https://keybase.io/maads) on keybase.
  • I have a public key whose fingerprint is D12F 6DA6 EA3D DEB5 610F 908B 6236 EB87 E02C DBC0

To claim this, I am signing this object:

Tid for lesning av vilkår

alt text

App Tid Totalt (minutt)
Angry Birds 0 - 45 45
Candy Crush 45 - 2t 20 95
Clash of Clans 2t 20 - 3t 29 69
Dropbox 3t 29 - 3t 57 28