This file contains hidden or 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
npx sharp-cli -i './image_src/*.png' -o './image_out/{name}.jpg' -f jpeg -q 92 |
This file contains hidden or 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
/* | |
* http://www.myersdaily.org/joseph/javascript/md5-text.html | |
*/ | |
(function (global) { | |
var md5cycle = function (x, k) { | |
var a = x[0], | |
b = x[1], | |
c = x[2], | |
d = x[3]; |
This file contains hidden or 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
--- | |
version: 1.0 | |
domains: | |
- giftcards-stage.townandcountrymarkets.com | |
url_patterns: | |
- giftcards-stage.townandcountrymarkets.com/* | |
timestamp: '2018-08-01T05:49:24Z' | |
id: UGZi | |
redirect_url: https://giftcards-stage.townandcountrymarkets.com/ | |
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome |
This file contains hidden or 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 | |
/** | |
* Join a string with a natural language conjunction at the end. | |
*/ | |
function natural_language_join(array $list, $conjunction = 'and') { | |
$last = array_pop($list); | |
if ($list) { | |
return implode(', ', $list) . ' ' . $conjunction . ' ' . $last; | |
} | |
return $last; |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 | |
$charge = \Stripe\Charge::create(array(/* ... */)); | |
echo $charge->jsonSerialize(); | |
/* OUTPUT | |
array ( | |
'id' => 'ch_16qYsuJSpQ6jmEwLd1CdGaLe', | |
'object' => 'charge', | |
'created' => 1343574552, | |
'livemode' => false, |
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 boilerplate</title> | |
<link rel="stylesheet" href="css/style.css"> | |
<script src="js/main.js"></script> | |
</head> | |
<body> | |
<h1>HTML5 boilerplate</h1> |
This file contains hidden or 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
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" > |