Solutions for regex.alf.nu (easy mode)
-
Warmup (207)
foo
-
Anchors (208)
k$
-
Ranges (202)
Solutions for regex.alf.nu (easy mode)
Warmup (207)
foo
Anchors (208)
k$
Ranges (202)
I hereby claim:
To claim this, I am signing this object:
# send yo to your devices via Yo API | |
# add next line to .bashrc/.zshrc to use this script | |
# export YO_APP="your justyo.co app token" | |
# USAGE: yop [link] | |
__yop(){ | |
local link=$1 | |
local api_url="http://api.justyo.co/yoall/" |
# send message to your devices via pushover.net API | |
# add next two or three lines to .bashrc/.zshrc to use this script | |
# export PUSHOVER_APP="your pushover.net app token" | |
# export PUSHOVER_USER="your pushover.net user key" | |
# # optional: | |
# export PUSHOVER_DEVICE="default device" | |
# USAGE: push <message> [-d=<device>] | |
# OPTIONS: |
# extra short | |
M=k=L=0 | |
while k<1e6: | |
n=k=k+1;l=1 | |
while n>1:n=[n/2,3*n+1][n%2];l+=1 | |
if l>L:M,L=k,l | |
print M | |
# short and fast | |
r={1:1};k=L=M=0 |
_ = require 'lodash' | |
{addons: {cloneWithProps}} = require 'react' | |
echoEvent = (rxId, eventStream, eventName, ev) -> | |
eventStream.onNext { | |
ev | |
rxId | |
type: eventName | |
} |
// https://babeljs.io/repl/#?evaluate=true | |
function getDiff(that, other) { | |
if (that == other) { return {} } | |
if (_.isEmpty(other)) { | |
return {all: true} | |
} | |
if (_.isObject(that)) { |
var Client = require('castv2-client').Client; | |
var Application = require('castv2-client').Application; | |
var util = require('util'); | |
var MyApp = function() { | |
Application.apply(this, arguments); | |
}; | |
MyApp.APP_ID = 'D60F290C'; | |
util.inherits(MyApp, Application); |
{ | |
"presets": ["es2015", "react"] | |
} |
var __extends = (this && this.__extends) || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
}; | |
var A = (function () { | |
function A(cb) { | |
this.cb = cb; | |
} | |
return A; |