Skip to content

Instantly share code, notes, and snippets.

View vesparny's full-sized avatar
🎾

Alessandro Arnodo vesparny

🎾
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vesparny on github.
  • I am arnx (https://keybase.io/arnx) on keybase.
  • I have a public key ASD_CTuuuGyEXiLdQXujfYqSH7HtI2GtVWqjrjTiJCdglgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am vesparny on github.
  • I am blablabla1 (https://keybase.io/blablabla1) on keybase.
  • I have a public key ASBrgjBgdLYLUh-Q1arltpteQ86VGAIG918L1g5e9DpxTAo

To claim this, I am signing this object:

@vesparny
vesparny / data.json
Last active November 22, 2018 16:54
next.arnodo.net analytics
{
"/": {
"count": 1491,
"lastVisited": "2018-11-22T16:54:25.419Z"
},
"/writing": {
"count": 277,
"lastVisited": "2018-11-22T13:18:16.937Z"
},
"/writing/2015/morpheus-is-moving-forward": {
@vesparny
vesparny / data.json
Last active September 10, 2018 13:24
arnodo.net analytics data
{}
04c437b9af14d4d0968a5006156e16209c50ea1748e77d747ded30bcddfa87e488121378efe1aac67685c7a7b0f12c437982a3768d0aa2755951af15ff38c157c1;luffy7
@vesparny
vesparny / bitwise.js
Created October 24, 2017 09:10
bitwise JavaScript
// how we calculate selectedDays
const days = _.range(0, 7).map((i) => {
return {
value: Math.pow(2, i)
}
})
console.log(days)
const selectedDays = {
@vesparny
vesparny / .gitconfig
Created October 24, 2017 09:08
git config
[alias]
ll = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ %C(green)[%cn\\ %C(yellow)%ce]" --graph --date=local
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"ive
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
@vesparny
vesparny / dump.js
Created October 24, 2017 09:08
React dump component
const Dump = (props) => <pre>{JSON.stringify(props, null, ' ')}</pre>
export default Dump
@vesparny
vesparny / tabs.js
Created October 24, 2017 09:06
angular 1 tab component
(function (angular, document, window, undefined) {
'use strict';
angular.module('tabs', [])
.directive('kTabs', function () {
return {
restrict: 'E',
scope: {
alignment: '@'
},
@vesparny
vesparny / client.js
Last active August 29, 2015 14:24
React.js post
const flux = new Flux();
const router = Router.create({
routes: routes,
location: Router.HistoryLocation
});
router.run((Handler, state) => {
React.render(
<Handler {...state} />,