Skip to content

Instantly share code, notes, and snippets.

View pcomans's full-sized avatar
🙈

Philipp Comans pcomans

🙈
  • Software Engineer at @1debit
  • Sacramento
View GitHub Profile
function tick(e) {
node.each(gravity(.2 * e.alpha))
.each(collide(.3))
.attr("cx", function(d) { return d.x; })
.attr("cy", function(d) { return d.y; })
.attr("transform", function(d) {
return "translate(" + d.x + "," + d.y + ")";
});
}
SITE TOTAL_VISITS CHARGE_FREE PERCENT_CHANGE
British Museum 5842138 F 4.90%
Tate Modern 5061172 F 7.00%
National Gallery 4954914 F 3.70%
Natural History Museum 4647613 F 13.20%
Science Museum (South Kensington) 2751902 F -0.50%
V&A (South Kensington) 2629065 F 16.00%
National Maritime Museum 2419802 F 2.19%
Tower of London (HRP) 2414541 C 1.04%
St Paul's Cathedral 1892467 F/C 4.00%
British Museum 5842138 F 4.90%
Tate Modern 5061172 F 7.00%
National Gallery 4954914 F 3.70%
Natural History Museum 4647613 F 13.20%
Science Museum (South Kensington) 2751902 F -0.50%
V&A (South Kensington) 2629065 F 16.00%
National Maritime Museum 2419802 F 2.19%
Tower of London (HRP) 2414541 C 1.04%
St Paul's Cathedral 1892467 F/C 4.00%
"use strict";
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
casper.echo('Casper started...');
casper.start('http://designit.com/team');
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@pcomans
pcomans / onShowView.js
Last active May 4, 2017 00:44
Code to trigger a function when a backbone view is attached to the DOM. For those situations when you can't use Marionette's onShow.
var OnShowView = Backbone.View.extend({
onShow: function () {
console.log("Do something");
},
onRender: function () {
this.afterDomAttachment(this.onShow);
},
afterDomAttachment: function (afterAttachment) {

Keybase proof

I hereby claim:

  • I am pcomans on github.
  • I am phpp (https://keybase.io/phpp) on keybase.
  • I have a public key ASCt3kyJ310I2UkrfnHELpcA4Nl4qZflaE9J7B-8BXQwLQo

To claim this, I am signing this object:

sudo apt-get -y install build-essential libxkbcommon-dev zlib1g-dev libfreetype6-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev nvidia-cg-toolkit nvidia-cg-dev libavcodec-dev libsdl2-dev libsdl-image1.2-dev libxml2-dev yasm
git clone git://github.com/libretro/libretro-super.git
cd libretro-super
SHALLOW_CLONE=1 ./libretro-fetch.sh
./retroarch-build.sh
@pcomans
pcomans / test.txt
Created May 22, 2018 22:33
Philipp & Digit
abc
@pcomans
pcomans / settings.json
Created June 26, 2018 20:28
VS Code Settings
{
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true