- Change
$path
and$uri
as necessary ingyazo.php
and upload it to your server - Change
HOST
andCGI
as necessary inscript
and use it to replaceGyazo.app/Contents/Resources/script
(right-click -> Show Package Contents to get there) - Continue along as usual
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
<?php | |
class Base56 | |
{ | |
/** | |
* Base56 alphabet. Technically, this component will do arbitrary encoding | |
* depending upon the alphabet, but whatevs! | |
* @var string | |
*/ | |
private static $_alphabet = '23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz'; |
No, I don’t, not really. For projects that do these operations a lot, it would probably be a very useful enhancement. My reaction is a manifestation of my larger frustration with the direction of EcmaScript and TC39.
Why do I feel this way? A few reasons.
One, because here is the trap that we’re stuck in now:
- Someone decides that feature X isn’t good enough, even though it has worked fine for years, so proposes functionally identical feature Y instead (see: exponentiation operator)
- TC39 has decreed that EcmaScript shall not be versioned, so “legacy” syntax X cannot ever be removed
- Now we have two competing ways to do the same thing
- But sometimes the two ways are slightly different (reduced fat arrow function syntax, DIFFERENT lexical scope behaviour)
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
// scenario 1 | |
var error = new Error('foo'); | |
error.stack; // first line = ? | |
// scenario 2 | |
var error = new Error('foo'); | |
error.message = 'bar'; | |
error.stack; // first line = ? | |
// scenario 3 |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<audio id="player" controls src="http://freedownloads.last.fm/download/415006180/So%2BSorry%2BGirl.mp3" type="audio/mp3"></audio><br> | |
<br> | |
<!-- playbackRate !== 1 should not cause audio to mute --> | |
Speed: <input type="range" min="0.5" max="2" value="1" step="0.01" onchange="player.playbackRate = +this.value"> | |
<script> | |
var player = document.querySelector('#player'); | |
if (window.AudioContext || window.webkitAudioContext) { |
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
// License: MIT | |
module.exports = async function MakeNonNullableReferencesPlugin(builder, { pgConfig }) { | |
async function getPolicies() { | |
const { rows } = await pgConfig.query({ | |
text: `SELECT DISTINCT polrelid::text, true FROM pg_policy WHERE polcmd IN ('r', '*')`, | |
rowMode: 'array' | |
}); | |
return new Map(rows); | |
} |