Skip to content

Instantly share code, notes, and snippets.

View claudiopro's full-sized avatar
🐠

Claudio Procida claudiopro

🐠
View GitHub Profile
@claudiopro
claudiopro / alex.log
Created May 18, 2020 08:35
Runs `alex` on Recoil docs@e2bb8f4
# procidac at macbook-pro-109.local.dhcp.thefacebook.com in ~/dev/gh/claudiopro/Recoil/docs on git:docs ✖︎ [9:28:48]
→ yarn lint-docs
Using globally installed version of Yarn
yarn run v1.12.1
$ alex .
README.md: no issues found
docs/api-reference/core/RecoilRoot.md: no issues found
docs/api-reference/core/atom.md: no issues found
docs/api-reference/core/isRecoilValue.md: no issues found
docs/api-reference/core/selector.md: no issues found
@claudiopro
claudiopro / hex.js
Last active November 26, 2017 21:16
console.hex polyfill
// 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 November 10, 2017 20:24 — forked from rauchg/README.md
require-from-dat
/node_modules/
module.js
@claudiopro
claudiopro / index.js
Created June 27, 2017 19:50
npx-gist
#!/usr/bin/env node
console.log('Hello npx-gist');
@claudiopro
claudiopro / npm-debug.log
Created June 24, 2017 17:14
debug log for `npm i app.json -g` when a file named `app.json` exists
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 October 13, 2015 21:03
couchdb-build-error-macosx
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 September 8, 2015 09:22
Output of `npm ls` for issue karma-webpack#70 "cannot load 'webpack'"
$ 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 October 10, 2014 23:05
Chrome User Stylesheet
/* 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 October 9, 2014 21:36
Poll Activity Stream notifications and print the total count (action required + unread mentions + unread notifications)
(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);
});
@claudiopro
claudiopro / Building-a-trapezoid.markdown
Created July 21, 2014 12:47
A Pen by Claudio Procida.