Skip to content

Instantly share code, notes, and snippets.

View pocky's full-sized avatar
🐿️
code code code

Alexandre Balmes pocky

🐿️
code code code
View GitHub Profile
@pocky
pocky / deletion.rb
Created May 14, 2018 21:34
My Tweet deletion script
#!/usr/bin/env ruby
require "tweet_deletion"
require 'yaml'
config = YAML.load_file('config.yml')
TweetDeletion.with( config ) do
for_archive("./archive/") do
keep_if earlier_than(3.years.ago), tag:" 📅 " # When I was young, I was.
<?php
declare(strict_types=1);
namespace App\Application\Request\Account;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Exception\ValidatorException;
use Symfony\Component\Validator\Validation;
<?php
// don't forget to run PHP with root
function russian($roulette) {
shuffle($roulette);
$kaboum = $roulette[0];
if (null === $kaboum) {
return 'Try again!';