Skip to content

Instantly share code, notes, and snippets.

View axelav's full-sized avatar
🕸️

Axel Anderson axelav

🕸️
View GitHub Profile

SANDWICHES

  • nutritional yeast
  • avocado
  • tahini
  • almond
  • pumpernickel bread
@axelav
axelav / .gitignore
Created May 11, 2014 01:32
node .gitignore
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
weather =
$scope.getWeather = (query) ->
url = """
http://api.openweathermap.org/data/2.5/forecast/daily
?mode=json
&units=imperial
&cnt=1
&callback=JSON_CALLBACK
&q=

Keybase proof

I hereby claim:

  • I am axelav on github.
  • I am axelav (https://keybase.io/axelav) on keybase.
  • I have a public key whose fingerprint is FB90 FCBD BACC C13E 737D 93D3 43BB 7E5D 51D3 326C

To claim this, I am signing this object:

@axelav
axelav / gnupg-backup.sh
Created April 13, 2014 20:45
backup gnupg secret keys
gpg2 --export-secret-keys > secret-backup.gpg
@axelav
axelav / jungle.md
Last active August 29, 2015 13:58
youtube jungle
/**
* This file/module contains all configuration for the build process.
*/
/**
* Load requires and directory resources
*/
var join = require('path').join,
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})),
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'),
@axelav
axelav / form.html
Created January 28, 2014 19:09
angular ui validation
<div class="form-group">
<label for="password" class="col-sm-4 control-label">New Password</label>
<div class="col-sm-8">
<input type="password" name="userPassword" class="form-control" placeholder="password" ng-model="user.password" ng-minlength="8" ui-validate="{uppercase : 'passwordHasUppercaseLetter($value)', lowercase: 'passwordHasLowercaseLetter($value)', number: 'passwordHasNumber($value)'}" required>
<div ng-show="resetPasswordForm.userPassword.$dirty && resetPasswordForm.userPassword.$invalid">
<span class="help-block" ng-show="resetPasswordForm.userPassword.$error.required">Please enter your password.</span>
<span class="help-block" ng-show="resetPasswordForm.userPassword.$error.minlength">Your password should be at least eight characters.</span>
<span class="help-block" ng-show="resetPasswordForm.userPassword.$error.uppercase">Your password should contain at least one uppercase letter.</span>
<span class="help-block" ng-show="resetPasswordForm.userPassword.$error
@axelav
axelav / scrollspy.coffee
Last active January 4, 2016 15:18 — forked from alxhill/scrollspy.coffee
add smooth scrolling (lines 11-18) & allow nested lists of spies
angular.module('directives.scrollSpy', [])
.directive('spy', ($location) ->
restrict: 'A'
require: '^scrollSpy'
link: (scope, elem, attrs, scrollSpy) ->
attrs.spyClass ?= 'active'
elem.click (e) ->
e.stopPropagation()
@axelav
axelav / form.html
Created January 17, 2014 21:26
angular confirm password
<div ng-app="myApp">
<form name="myForm">
Password: <input ng-model="user.password" type="password" name="password" ng-class="{'ng-invalid':myForm.confirmPassword.$error.match}" />
Confirm: <input ng-model="user.passwordConfirm" type="password" match="user.password" name="confirmPassword" />
<div ng-show="myForm.confirmPassword.$error.match">Passwords do not match!</div>
</form>
<hr />
<p>Mis-match? {{myForm.confirmPassword.$error.match}}</p>
</div>