npm Users By Downloads (git.io/npm-top)
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
# | User | Downloads |
---|
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
# | User | Downloads |
---|
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
#move_uad_plugins.py - python script to remove unlicensed UAD plugin binaries from VST, AU and AAX folders | |
import os, shutil | |
#http://stackoverflow.com/a/800201/674745 | |
def get_immediate_subdirectories(a_dir): | |
return [name for name in os.listdir(a_dir) | |
if (os.path.isdir(os.path.join(a_dir, name)) and name != 'Mono')] |
var url = '/api/messages/stream-updates' + | |
'?access_token=' + LoopBackAuth.accessTokenId; | |
var src = new EventSource(url); | |
var changes = createChangeStream(src); | |
var set; | |
Message.find({ | |
filter: { | |
where: { |
@pulkitsinghal here’s a gist of the core of it all:
https://gist.github.com/doublemarked/e4bf329d11c55baf468f
@pulkitsinghal this will log access tokens with all log messages.
Bunyan produces JSON, so you’re essentially going to need to parse
the log to fish out things, but JSON makes it easy to do that.
For simple things (like access tokens) you can also use grep
{ | |
"initial:before": { | |
"loopback#context": { | |
"params": { "enableHttpContext": true } | |
}, | |
"loopback#token": {}, | |
"loopback#favicon": { | |
"params": "$!../client/images/govright-favicon.ico" | |
}, | |
"./middleware/logging": {}, |
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |
var data = { | |
"name": "root", | |
"contents": [ | |
{ | |
"name": "A", | |
"contents": [ | |
{ | |
"name": "fileA1", | |
"contents": [] | |
} |
import React, { PropTypes } from 'react'; | |
import { TransitionMotion, spring } from 'react-motion'; | |
/** | |
* One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3). | |
* | |
* Usage is simple, and really only requires two things–both of which are | |
* injected into your app via react-router–pathname and children: | |
* | |
* <RouteTransition pathname={this.props.pathname}> |
#!/bin/sh | |
if [ "$(id -u)" != "0" ]; then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi | |
if !(type pcp 2>/dev/null;) then | |
yum -y install git bison flex gcc-c++ perl-Tk-devel libmicrohttpd-devel | |
git clone git://git.pcp.io/pcp |