Skip to content

Instantly share code, notes, and snippets.

Claudio Procida claudiopro

Block or report user

Report or block claudiopro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@claudiopro
claudiopro / hex.js
Last active Nov 26, 2017
console.hex polyfill
View hex.js
// Copyright (c) by Niels Leenheer
// https://twitter.com/html5test/status/934879316080517121
console.hex = d =>
console.log(
(Object(d).buffer instanceof ArrayBuffer
? new Uint8Array(d.buffer)
: typeof d === "string"
? new TextEncoder("utf-8").encode(d)
: new Uint8ClampedArray(d)
).reduce(
@claudiopro
claudiopro / .gitignore
Last active Nov 10, 2017 — forked from rauchg/README.md
require-from-dat
View .gitignore
/node_modules/
module.js
View index.js
#!/usr/bin/env node
console.log('Hello npx-gist');
@claudiopro
claudiopro / npm-debug.log
Created Jun 24, 2017
debug log for `npm i app.json -g` when a file named `app.json` exists
View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/procidac/.nvm/versions/node/v7.7.2/bin/node',
1 verbose cli '/Users/procidac/.nvm/versions/node/v7.7.2/bin/npm',
1 verbose cli 'i',
1 verbose cli 'app.json',
1 verbose cli '-g' ]
2 info using npm@4.1.2
3 info using node@v7.7.2
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
@claudiopro
claudiopro / output.2.log
Last active Oct 13, 2015
couchdb-build-error-macosx
View output.2.log
guadalaviar:couchdb delphine$ ./configure -c --disable-docs --disable-fauxton && make
==> configuring couchdb in rel/couchdb.config
Cloning into '/Users/delphine/dev/Git/janl/couchdb/src/rebar'...
remote: Counting objects: 367, done.
remote: Compressing objects: 100% (274/274), done.
remote: Total 367 (delta 63), reused 241 (delta 34)
Receiving objects: 100% (367/367), 241.03 KiB | 117.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Note: checking out '5dea85db1b697466586877bed133748bd80fa180'.
@claudiopro
claudiopro / npm_ls.txt
Created Sep 8, 2015
Output of `npm ls` for issue karma-webpack#70 "cannot load 'webpack'"
View npm_ls.txt
$ npm ls
essential-react@0.2.5 /Users/delphine/Development/Git/pheuter/essential-react
├─┬ babel-core@5.8.23
│ ├── babel-plugin-constant-folding@1.0.1
│ ├── babel-plugin-dead-code-elimination@1.0.2
│ ├── babel-plugin-eval@1.0.1
│ ├── babel-plugin-inline-environment-variables@1.0.1
│ ├── babel-plugin-jscript@1.0.4
│ ├── babel-plugin-member-expression-literals@1.0.1
│ ├── babel-plugin-property-literals@1.0.1
@claudiopro
claudiopro / Custom.css
Created Oct 10, 2014
Chrome User Stylesheet
View Custom.css
/* Facebook mods */
/*
body.permalinkBody, body.timelineLayout {
background-color: #f0f0f0 !important;
}
#blueBar {
background: -webkit-linear-gradient(top, #464646 0%, #111 100%);
border-bottom: 1px solid #1a96c6 !important;
height: 39px !important;
}
@claudiopro
claudiopro / poll.js
Created Oct 9, 2014
Poll Activity Stream notifications and print the total count (action required + unread mentions + unread notifications)
View poll.js
(function poll_notifications() {
var dfd = dojo.xhrGet({
url : '/connections/opensocial/basic/rest/activitystreams/@me/@actions',
handleAs : 'json'
});
dfd.addCallback(function(response, ioargs) {
var count = response.totalResults + response.connections.unreadMentions + response.connections.unreadNotifications;
console.log(count);
setTimeout(poll_notifications, 30000);
});
You can’t perform that action at this time.