I hereby claim:
- I am devm33 on github.
- I am devm33 (https://keybase.io/devm33) on keybase.
- I have a public key whose fingerprint is FB74 6ADC B899 CB2B E4C3 A712 E385 2F90 A94F A38B
To claim this, I am signing this object:
| #!/bin/bash | |
| for f in *.jpg | |
| do | |
| num=${f//[^0-9]/} | |
| secs=${num:0:4} | |
| mmss=$(printf '%02d%02d\n' $((10#$secs/60)) $((10#$secs%60))) | |
| touch -mt 20180528${mmss} $f | |
| touch -t 20180528${mmss} $f | |
| done |
| // Convert numbers to english words | |
| const digit = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']; | |
| const teens = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen']; | |
| const tens = [null, null, 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety']; | |
| const orders = ['hundred', 'thousand', 'million', 'billion', 'trillion', 'quadrillion', 'quintillion', 'sextillion']; | |
| function floor(number, order) { | |
| return Math.floor(number / order) | |
| } |
| Verifying that "devm33.id" is my Blockstack ID. https://onename.com/devm33 |
| [program:gitpush] | |
| command=/home/devm33/gitpush.sh | |
| autostart=true | |
| autorestart=true | |
| startretries=3 | |
| stderr_logfile=/var/log/gitpush.err.log | |
| stdout_logfile=/var/log/gitpush.out.log | |
| user=devm33 |
I hereby claim:
To claim this, I am signing this object:
| angular.module('dynAttrs', []) | |
| .directive('dynAttrs', () => { | |
| return { | |
| link: function(scope, element, attrs) { | |
| scope.$watch(attrs.dynAttrs, (dynAttrs) => { | |
| _.each(dynAttrs, (val, attr) => { | |
| if(val) { | |
| element.attr(attr, val); | |
| } else { | |
| element.removeAttr(attr); |
| def sieve(n): | |
| x = [1]*n | |
| x[1] = 0 | |
| for i in range(2, n/2): | |
| j = 2*i | |
| while j<n: | |
| x[j] = 0 | |
| j = j+i | |
| return x |
| function calc(expr) { | |
| return expr.split(/\s+/).reduce(function(stack, current){ | |
| var a, b, c; | |
| if(/[+\-*\/]/.test(current)){ | |
| b = stack.pop(); | |
| a = stack.pop(); | |
| switch(current) { | |
| case '+': c = a + b; break; | |
| case '-': c = a - b; break; | |
| case '*': c = a * b; break; |
| /* | |
| * robotMaze.js | |
| * | |
| * The blue key is inside a labyrinth, and extracting | |
| * it will not be easy. | |
| * | |
| * It's a good thing that you're a AI expert, or | |
| * we would have to leave empty-handed. | |
| */ |
| /* Set up a local testing server to serve a static folder */ | |
| var express = require("express"); | |
| express().use(express.static(__dirname)).listen(5000, function(){ | |
| console.log('http://0.0.0.0:5000 listening...'); | |
| }); |