Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!/bin/bash | |
function speedTest { local the_speed=$( wget -O /dev/null "http://$1" 2>&1 | awk '/\/dev\/null/ {speed = $3 $4} END {gsub(/\(|\)/,"",speed); print speed}');echo $the_speed;};echo "jsTest.sh by IshanDS www.ishands.cf";echo "";cdnjs=$(speedTest "cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js");echo "Speed from CDNJs: $cdnjs";google=$(speedTest "ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");echo "Speed from Google CDN: $google";jsdelivr=$(speedTest "cdn.jsdelivr.net/jquery/2.1.1/jquery.min.js");echo "Speed from jsDelivr: $jsdelivr";maxcdn=$(speedTest "oss.maxcdn.com/jquery/2.1.1/jquery.min.js");echo "Speed from MaxCDN: $maxcdn";jquery=$(speedTest "code.jquery.com/jquery-2.1.1.min.js");echo "Speed from Jquery CDN: $jquery";microsoft=$(speedTest "ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js");echo "Speed from Microsoft CDN: $microsoft";echo "";echo "Thank you for using jsTest.sh" |
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
tell application "Spotlight" to inject SIMBL into Snow Leopard
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ [email protected]
/* Using a JavaScript proxy for a super low code REST client */ | |
// via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
// also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
// also see https://github.com/fastify/manifetch | |
// also see https://github.com/flash-oss/allserver | |
// and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const createApi = (url) => { | |
return new Proxy({}, { | |
get(target, key) { |