Some simple functions to calculate long-shadows in realtime
A Pen by Daniele Piccone on CodePen.
#!/bin/bash | |
image=$1 | |
sizes="1000 5000 7500 10000" | |
if test -z "$image"; then | |
echo "Missing image file" | |
exit 1 | |
fi | |
for size in $sizes; do |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>string split and multiline regexp #jsbench #jsperf</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
#!/bin/bash | |
while true; do inotifywait src/*; npm run build; done |
#!/usr/bin/env node | |
const TrackingDog = require('trackingdog/lib/TrackingDog'); | |
const exec = require('child_process').exec; | |
const stackFramesRe = /(https?:\/\/[^:]*:[^:]*:[^: ]*)/g; | |
const codeLineRe = /(https?:\/\/[^:]*):(\d*):(\d*)/; | |
const trackingdog = new TrackingDog({}); | |
function consumeStream(stream) { |
import React from 'react'; | |
import { getDataFromTree } from 'react-apollo/lib/index'; | |
class AsyncRoute extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
route: props.children | |
}; | |
} |
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="nodejs" |
Some simple functions to calculate long-shadows in realtime
A Pen by Daniele Piccone on CodePen.
VBoxManage setextradata Developement VBoxInternal2/SharedFoldersEnableSymlinksCreate/Dev 1 | |
VBoxManage setextradata Developement VBoxInternal2/SharedFoldersEnableSymlinksCreate/htdocs 1 |
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <senko.rasic@dobarkod.hr> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
var i = '', out = []; | |
for (i in window) { | |
if ( /^on/.test(i)) { out[out.length] = i; } | |
} | |
console.log( out.join(', ') ); |