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 / 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 / __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 / .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 / 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: {
@nemo
nemo / error.txt
Last active December 7, 2016 23:17
keras_model_rnn_error.py
theano/scan_module/scan_perform.pyx in theano.scan_module.scan_perform.perform (/home/ubuntu/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/scan_perform/mod.cpp:4193)()
ValueError: dimension mismatch in args to gemm (64,256)x(256,256)->(1,256)
Apply node that caused the error: GpuGemm{no_inplace}(GpuSubtensor{::, int64::}.0, TensorConstant{0.20000000298}, <CudaNdarrayType(float32, matrix)>, lstm_7_U_o_copy[cuda], TensorConstant{0.20000000298})
Toposort index: 5
Inputs types: [CudaNdarrayType(float32, matrix), TensorType(float32, scalar), CudaNdarrayType(float32, matrix), CudaNdarrayType(float32, matrix), TensorType(float32, scalar)]
Inputs shapes: [(1, 256), (), (64, 256), (256, 256), ()]
Inputs strides: [(0, 1), (), (256, 1), (256, 1), ()]
Inputs values: ['not shown', array(0.20000000298023224, dtype=float32), 'not shown', 'not shown', array(0.20000000298023224, dtype=float32)]
Outputs clients: [[GpuElemwise{Composite{(clip((i0 + i1), i2, i3) * tanh(i4))},no_inplace}(C