I hereby claim:
- I am pospi on github.
- I am pospi (https://keybase.io/pospi) on keybase.
- I have a public key ASBxJoVjLhHN_8kL5a3J_EdAoEIQJM_yJ5Ho0Esk7e0giAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/.env | |
/node_modules |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Helper script to setup symlinks and modules for services integration during development | |
# | |
# @depends http://stedolan.github.io/jq/ | |
# @depends https://yarnpkg.com/ | |
# | |
# :WARNING: | |
# Your global npm packages must be installed for the current user in order for this script to work. | |
# If this is not the case, we recommend you nuke your global npm folder and replace with an nvm-managed |
const r = require('rethinkdb'); | |
const { curry } = require('ramda'); | |
module.exports = curry(function* (rdbConn, projectName, collectionName) { | |
const table = yield r.db(`${projectName}_internal`).table('collections').get(collectionName).getField('table').run(rdbConn); | |
return r.db(projectName).table(table); | |
}); |
// Usage: from your entrypoint script file or other 'global' module of interest: | |
// require('nodejs-global-module-includes')(module); | |
var Module = require('module'); | |
export default function setModuleIncludePathGlobal(globalModule) { | |
var globalPaths = globalModule.paths; | |
var oldPathHandler = Module._nodeModulePaths; | |
Module._nodeModulePaths = function(from) { |
#!/usr/bin/env bash | |
# | |
# Helper script to setup symlinks and modules for services integration during development | |
# | |
# @depends http://stedolan.github.io/jq/ | |
# | |
# :WARNING: | |
# Your global npm packages must be installed for the current user in order for this script to work. | |
# If this is not the case, we recommend you nuke your global npm folder and replace with an nvm-managed | |
# node install in your homedir, which will have the correct permissions for `npm link` to function. |
#!/bin/env bash | |
echo Setting up dev server | |
# Change these as you need: | |
declare HOSTNAME=my_host | |
declare DB_ROOT_PW=my_password | |
declare DB_NAME=my_dbname | |
declare NGINX_CONFIG=my_site | |
declare OPTIONAL_PACKAGES="sudo vim git" |
window.watchEvents = function() { | |
var eventIds = [ | |
'click', 'mousedown', 'mouseup', | |
'touch', 'touchstart', 'touchend', | |
'focus', 'focusin', 'focusout', 'blur', | |
'mouseover', 'mouseout', 'mousemove', 'mouseenter', 'mouseleave', 'mousewheel', | |
'keypress', 'keydown', 'keyup', | |
'change', | |
'scroll', 'resize', | |
'submit', 'reset', |
/** | |
* Prerequisites: | |
* element must be block-level & visible | |
* element must have height: 0 | |
* element must have overflow: hidden | |
* | |
* Returns true if the element was shown, false if it was hidden | |
*/ | |
function slideToggle(ul) | |
{ |