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
yarn licenses v1.22.17 | |
├─ (MIT AND BSD-3-Clause) | |
│ └─ sha.js@2.4.11 | |
│ ├─ URL: git://github.com/crypto-browserify/sha.js.git | |
│ ├─ VendorName: Dominic Tarr | |
│ └─ VendorUrl: https://github.com/crypto-browserify/sha.js | |
├─ (MIT AND Zlib) | |
│ └─ pako@1.0.11 | |
│ ├─ URL: https://github.com/nodeca/pako.git | |
│ └─ VendorUrl: https://github.com/nodeca/pako |
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
{ | |
"eventName": "orderConfirmed or orderShipped", | |
"customerEmail": "jasper@fanbace.com", | |
"customerName": "Jasper Kennis", | |
"orderItems": ["Amazing Tshirt", "Fantastic Bag"], | |
"artistCustomerServiceEmailAddress": "reach-the-artist@their-mail.com", | |
"orderRef": "abc123", | |
"orderId": "123455", | |
"orderUuid": "abc-123-abc-123", | |
"trackingCode": "theCodeWhenPresent" |
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
/** | |
* To use: | |
* - Save this script as `index.js` and put it in a folder | |
* - In the same folder, put your json file. It MUST be called `dataset.json`. | |
* - In a terminal go to the folder with the script. | |
* - Run `node index.js` | |
* - CSV will be printed with the data you need. | |
* - If you want to add other data, put it in the array at the beginning of the script. | |
*/ |
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
<!-- Place this just before the closing tag of <body> --> | |
<script> | |
(function(){ | |
function getParams () { | |
const paramsToReplace = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term']; | |
const res = []; | |
const windowParams = new URLSearchParams(window.location.search); | |
for (let i = 0; i < paramsToReplace.length; i++) { | |
const paramName = paramsToReplace[i]; |
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
### Keybase proof | |
I hereby claim: | |
* I am jasperkennis on github. | |
* I am jasperkennis (https://keybase.io/jasperkennis) on keybase. | |
* I have a public key ASBuiYaAZXbxgz1jmfOcd5xdR-jhNXo1LGJkvNJnZzGNMAo | |
To claim this, I am signing this object: |
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
/** | |
* Custom implementation of range slider, with a single slider instead of two. | |
* Defaults min to 0, and allows the max to be changed using the slider. | |
* | |
* Implementation depends on jQuery and rangeslider (http://rangeslider.js.org/) | |
* to be present. | |
*/ | |
var $, | |
custom_range_slider, |
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
#!/usr/bin/env php | |
<?php | |
$points = [ | |
[6.13, 73], | |
[5.76, 77.7], | |
[5.39, 78.6] | |
]; | |
$x1 = $points[0][0]; | |
$x2 = $points[1][0]; |
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
# By Oto Brglez - @otobrglez | |
# Rake task. Put in your (lib/tasks) folder of your Rails application | |
# Execute with "rake dropbox:backup" | |
# Configuration must be inside config/dropbox.yml file | |
namespace :dropbox do | |
desc "Backup production database to dropbox" | |
task :backup do | |
NewerOlder