This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validateIBAN(iban) { | |
var newIban = iban.replace(/ /g, '').toUpperCase(), | |
modulo = function (divident, divisor) { | |
var cDivident = ''; | |
var cRest = ''; | |
for (var i in divident ) { | |
var cChar = divident[i]; | |
var cOperator = cRest + '' + cDivident + '' + cChar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
//concat files | |
concat: { | |
app : { | |
src: ['js/*.js', '!js/*min.js'], | |
dest: 'js/all.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* From: html5rocks.com under APACHE2 Licence | |
* Copyright Google | |
**/ | |
(function () { | |
var COUNT = 300; | |
var masthead = document.querySelector('.masthead'); | |
var canvas = document.createElement('canvas'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document, undefined) { | |
function jQuery(selector) { | |
this.el = this.slice.call(document.querySelectorAll(selector)); | |
this.length = this.el.length; | |
this.el.forEach(function (element, index) { | |
this[index] = element; | |
}, this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var auth_token = $("input[name='authenticity_token']")[0].value; | |
$(".js-subscription-row > a[href^='/ORGANISATION']").each(function($elem){ | |
$.post("/notifications/subscribe", { | |
authenticity_token : auth_token, | |
do : 'included', | |
'repository_id' : $("form.js-unsubscribe-form [name='repository_id']", $(this).parent("li")).val() | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin query { | |
@media only screen and (max-width: 8888888px) { | |
@content; | |
} | |
} | |
@media all and (min-width: 1px) { | |
body { | |
color: black; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = require('./data/users.json'); | |
function distance(lat1, lon1, lat2, lon2) { | |
var radlat1 = Math.PI * lat1/180; | |
var radlat2 = Math.PI * lat2/180; | |
var radlon1 = Math.PI * lon1/180; | |
var radlon2 = Math.PI * lon2/180; | |
var theta = lon1 - lon2; | |
var radtheta = Math.PI * theta/180; | |
var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Apple | |
Model: MacBookPro9,1 | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x3a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
onChecked: function() { | |
this.checkboxCb(); | |
} | |
} | |
}); |
OlderNewer