Skip to content

Instantly share code, notes, and snippets.

View clarkio's full-sized avatar
🎷
Cool Jazz

Brian Clark clarkio

🎷
Cool Jazz
View GitHub Profile
@clarkio
clarkio / HowTo.txt
Last active March 12, 2025 20:01
A Script to gather instagram account urls from a search query
1. Open the query URL in your browser with the search term you want to use
An example URL searching for dogs: https://www.instagram.com/web/search/topsearch/?context=blended&query=dog&rank_token=0.5831184414520498&include_reel=false
2. Copy the code in the "script.js" file
3. Open up your browser dev tools and go to the console
4. Paste in the code and hit Enter
@clarkio
clarkio / settings.json
Created February 9, 2018 00:50
Archive VS Code Settings 08022018
{
"workbench.editor.tabSizing": "shrink",
"explorer.openEditors.visible": 0,
"window.zoomLevel": 1,
"git.confirmSync": false,
"prettier.singleQuote": true,
"prettier.printWidth": 120,
"editor.lineNumbers": "on",
"editor.lineHeight": 0,
@clarkio
clarkio / vs-code-can-do-that-settings.json
Last active May 19, 2018 19:39
VS Code settings to use for recording VS Code Can Do That content
{
"window.zoomLevel": 4,
"editor.formatOnSave": true,
"workbench.iconTheme": "vs-seti",
"workbench.colorTheme": "Monokai Dimmed",
"prettier.singleQuote": true
}
@clarkio
clarkio / cloudSettings
Last active October 10, 2019 03:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-10T03:00:57.381Z","extensionVersion":"v3.4.3"}
// callbacks
foo(params, function (error, fooResult) {
bar(fooResult, function (error, barResult) {
baz(barResult, function (error, bazResult) {
// and on and on... >>>>>>>
});
});
});
@clarkio
clarkio / server.js
Created August 11, 2017 19:39
Restify middleware next() blog post code snippets - before changes
server.get('/secure/route',
// My short-circuiting middleware "module"
function checkAuthorization (req, res, next) {
res.send(401, 'Unauthorized');
return next();
},
// My route implementation
function routeAction (req, res, next) {
res.send(200, { data: 'secure data' });
return next();
@clarkio
clarkio / server.js
Last active August 11, 2017 19:37
Restify middleware next() blog post code snippets - after changes
server.get('/secure/route',
// My short-circuiting middleware "module"
function checkAuthorization (req, res, next) {
res.send(401, 'Unauthorized');
return next(false);
},
// My route implementation
function routeAction (req, res, next) {
res.send(200, { data: 'secure data' });
return next();
@clarkio
clarkio / index-after.js
Created August 11, 2017 19:30
Restify middleware next() blog post code snippets
server.get('/secure/route',
// My short-circuiting middleware "module"
function checkAuthorization (req, res, next) {
res.send(401, 'Unauthorized');
return next(false);
},
// My route implementation
function routeAction (req, res, next) {
res.send(200, { data: 'secure data' });
return next();