Skip to content

Instantly share code, notes, and snippets.

View nidup's full-sized avatar
😼
Doing stuff

Nicolas Dupont nidup

😼
Doing stuff
View GitHub Profile
@docteurklein
docteurklein / README.md
Last active October 19, 2018 14:03
generate burndown charts with trello, R and jq
export TRELLO_TOKEN='<your trello token>' # found in web cookie
export TRELLO_DONE_ID='<the trello internal id of the "Done" list>'

curl -H "Cookie: token=$TRELLO_TOKEN;" -sL trello.com/b/2NFnHkvl.json \
  | ./plot.sh 2018-06-01 2018-11-01 true | ./burndown.r "$(date --iso -d '+2 year')" && xdg-open burndown.svg
const puppeteer = require('puppeteer');
async function visit(breadcrumb, allowed, denied, visited, browser, url) {
if (visited.has(url)) {
console.log(`already visited ${url}`);
return;
}
if (denied.some(regex => regex.test(url))) {
console.log(`denied ${url}`);
return;
@mickaelandrieu
mickaelandrieu / upgrade2.3-to-2.7.md
Last active March 18, 2025 14:11
Complete migration guide from Symfony 2.3 LTS to Symfony 2.7 LTS

From Symfony 2.3 to Symfony 2.7: the complete guide

Objectives

  • assume your code doesn't use any deprecated from versions below Symfony 2.3
  • update dependencies from 2.3 to 2.7
  • do not support "deprecated", be "Symfony3-ready"
  • list tasks component by component, bundle by bundle.
@docteurklein
docteurklein / Collaborator.php
Created August 16, 2014 19:55
a phpspec extension to ease usage of Iterators
<?php
namespace PhpSpec\Iterator;
use PhpSpec\Wrapper\Collaborator as Base;
use Prophecy\Prophecy\ObjectProphecy;
use Prophecy\Promise\ReturnPromise;
class Collaborator extends Base
{
@lolautruche
lolautruche / 0 - Readme.md
Last active August 29, 2015 14:04
Oro DistributionBundle split

Subtree split of OroCRM/DistributionBundle

  1. Clone the base repository into oro-platform directory:

    git clone [email protected]:lolautruche/platform.git oro-platform
    git remote add upstream [email protected]:orocrm/platform.git
    git config branch.master.remote upstream
  2. Run the 2 shell scripts, split_oro_config_component.sh and split_oro_distribution_bundle.sh

@romaricdrigon
romaricdrigon / formController.js
Created August 21, 2013 07:46
Using AngularJS on Symfony2 forms
// An example controller binded to the form
function FormCntl($scope, $compile) {
// Consider using FosJsRouting bundle, if you want to use a Symfony2 route
$scope.formUrl = "http://url-to-fetch-my-form";
// Data from the form will be binded here
$scope.data = {};
// Method called when submitting the form
$scope.submit = function() {
@ftvs
ftvs / CameraShake.cs
Last active May 2, 2025 13:33
Simple camera shake effect for Unity3d, written in C#. Attach to your camera GameObject. To shake the camera, set shakeDuration to the number of seconds it should shake for. It will start shaking if it is enabled.
using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
{
// Transform of the camera to shake. Grabs the gameObject's transform
// if null.
public Transform camTransform;
// How long the object should shake for.
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real