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
const fs = require('fs') | |
const path = require('path') | |
const os = require('os') | |
const minimatch = require('minimatch') | |
const options = { matchBase: true } | |
const commit = process.argv[2] === 'commit' | |
const trim = x => x.trim() |
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
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <queue> | |
#include <functional> | |
#include <chrono> | |
class ThreadPool |
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 strict"; | |
var isArray = function(arg) { | |
return Object.prototype.toString.call(arg) === '[object Array]'; | |
}; | |
var isObject = function(arg) { | |
return Object.prototype.toString.call(arg) === '[object Object]' | |
} |
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
/* | |
You can obtain a token, client-side like this: | |
const { currentUser } = firebase.auth() | |
if (!currentUser) throw new Error('User has to be logged in.') | |
const idToken = await currentUser.getIdToken() | |
*/ | |
const http = require('http') |
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
#target illustrator | |
var doc = app.activeDocument; | |
for (var i = 0; i < doc.dataSets.length; i++) { | |
var d = doc.dataSets[i]; | |
d.display(); | |
d.update(); | |
} |
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
{ | |
"name": "mock-http-server", | |
"version": "1.0.0", | |
"description": "", | |
"main": "server.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
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
/** | |
* Author: Sem Postma ([email protected]) | |
* Name: Final Export | |
* License: MIT | |
* | |
* Installation: Copy this file to your illustrator scripts folder: | |
* For windows: C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\<your locale>\Scripts | |
* For Mac: Applications/Adobe Illustrator CC/Presets/<your locale>/Scripts | |
* | |
* Usage: File->Scripts->Final Export |
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
/** | |
* Author: Sem Postma ([email protected]) | |
* Name: Final Export | |
* | |
* Installation: Copy this file to your illustrator scripts folder: | |
* For windows: C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\<your locale>\Scripts | |
* For Mac: Applications/Adobe Illustrator CC/Presets/<your locale>/Scripts | |
* | |
* Usage: File->Scripts->Final Export | |
* Questions? Send me an email. |
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
var inputText = '._3u328'; | |
var sendBtn = '._3M-N-'; | |
setInterval(function(){ | |
document.querySelector(inputText).innerText = 'test'; | |
var event = new Event('input', { | |
'bubbles': true, | |
'cancelable': true | |
}); |
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
var URLs = UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url).filter((v, i, a) => a.indexOf(v) === i) | |
copy(URLs.join('\n')); |