Skip to content

Instantly share code, notes, and snippets.

View nemo's full-sized avatar

Nima Gardideh nemo

View GitHub Profile
@nemo
nemo / ashby.css
Last active July 11, 2023 23:08
Ashby CSS
/* stylelint-disable */
/* These variables can be used to control values throughout the job board. */
/* The max width of the job board container */
--widthMaxJobBoard: 800px;
/* The max width of the application form section */
/* --widthMaxJobBoard: 800px; */
Verifying my Blockstack ID is secured with the address 18fLp5SMHBpY5v7tNaYpiUjUYFYZLNmthd https://explorer.blockstack.org/address/18fLp5SMHBpY5v7tNaYpiUjUYFYZLNmthd
@nemo
nemo / README.md
Last active May 23, 2018 20:30
You don't have to edit MessageBird or AscendDB's code. Create a new service with the following code!
@nemo
nemo / __main__.js
Last active September 11, 2017 16:42
StdLIb Distributed Scraper
const request = require('request-promise-native');
const cheerio = require('cheerio');
const parseAll = require('html-metadata').parseAll;
/**
* A simple and powerful scraper
* @param {string} url Url to fetch
* @param {string} userAgent Request's User Agent
* @param {array} queries Queries to apply (using cheerio)
* @returns {object}
@nemo
nemo / example.js
Last active September 11, 2017 06:22
StdLib Distributed Scraper Example
const lib = require('lib');
lib.username.scraper['@local']({
url: 'https://github.com/search?q=scraping&ref=opensearch',
queries: [
[".repo-list-item h3 a", "text"],
[".repo-list-item h3 a", "attr", ["href"]]
]
})
.then(console.log)
@nemo
nemo / .hyper.js
Created August 10, 2017 21:55
.hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Hack, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@nemo
nemo / lib.utils.read.sh
Last active March 15, 2017 01:46
utils.log.read usage
# STDLIB_LIBRARY_TOKEN can be found on your dashboard
lib utils.log.read -t STDLIB_LIBRARY_TOKEN --service service-name
@nemo
nemo / tc_scrape.js
Last active March 13, 2017 22:21
Techcrunch Article Title Scraper
const lib = require('lib');
const async = require('async');
const _ = require('lodash');
var pages = [
'https://techcrunch.com/',
...(_.range(2, 100).map((i) => "https://techcrunch.com/page/" + i))
];
async.mapLimit(pages, 10, (pageUrl, callback) => {
@nemo
nemo / email-service.subscribe.js
Created March 1, 2017 21:40
Email Service: Subscribe
const lib = require('lib');
lib['./subscribe']({
email_address: 'email-address@domain.com',
first_name: 'Nima',
last_name: 'Gardideh'
}, (err) => {
// Handle error
});
@nemo
nemo / email-service.send.js
Last active March 1, 2017 21:40
Email Service: Send
const lib = require('lib');
lib['./send']({
message: {
to: [{
email: "nima@halfmoon.ws",
name: "Nima Gardideh",
type: "to"
}],
headers: {