Skip to content

Instantly share code, notes, and snippets.

Jérôme Foray Meroje

Block or report user

Report or block Meroje

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Meroje
Meroje / index.html
Created Apr 10, 2015
Novius OS js modules graph, created with https://github.com/auchenberg/dependo
View index.html
<html>
<head>
<title>dependo</title>
<style>
body {
background: #fff;
padding:0;
margin:0;
font-family:helvetica,arial;
overflow: hidden;
View firefox-dev.desktop
[Desktop Entry]
Version=1.0
Name=Firefox Developer
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Web Browser
GenericName[ar]=متصفح الشبكة
GenericName[bg]=Уеб браузър
GenericName[ca]=Navegador web
GenericName[cs]=WWW prohlížeč
View keybase.md

Keybase proof

I hereby claim:

  • I am meroje on github.
  • I am meroje (https://keybase.io/meroje) on keybase.
  • I have a public key whose fingerprint is 7403 40C0 E1EF 99DF 9D05 B944 0592 D0A2 50B7 1B40

To claim this, I am signing this object:

View gulpfile.js
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var less = require('gulp-less');
// Browser-sync task, only cares about compiled CSS
gulp.task('browser-sync', function() {
browserSync.init(["dist/**"], {
View bootstrap_homeshick.sh
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'
@Meroje
Meroje / index.html
Last active Aug 29, 2015
Map Marker
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen - Pen</title>
</head>
View keybase.md

Keybase proof

I hereby claim:

  • I am meroje on github.
  • I am meroje (https://keybase.io/meroje) on keybase.
  • I have a public key whose fingerprint is A279 58B4 FB91 2782 FC8D 5D3C 198D BC8B 3952 A88D

To claim this, I am signing this object:

@Meroje
Meroje / 0-README.md
Last active Aug 29, 2015
The Twitter emoji scanner
View 0-README.md

Purpose

This was used to find all possible urls of twitter's emojis.
The list is used for BetterTweetDeck's emojis replacement script.

Do it at home

First we export all characters from /System/Library/Input Methods/CharacterPalette.app/Contents/Resources/CharacterDB.sqlite3 (column uchr from table unihan_dict) as csv (could have used sqlite from nodejs). This file contains all unicode characters (54072).

Then this csv is parsed with nodejs, which outputs corresponding urls.

To find all emojis from there, you just have to test every urls (example, another, with paralelism) (be gentle, use HEAD) to remove those that return 404.

@Meroje
Meroje / comment.php
Created Dec 4, 2013
TimeDiff For Humans
View comment.php
<?php
use Carbon\Carbon;
class Comment extends Eloquent {
protected $guarded = array();
protected $softDelete = true;
public static $rules = array();
View settings.php
<?php
class DBconfiguratorObject implements ArrayAccess, Serializable {
protected $config = array();
protected $table = null;
private static $_instance = null;
public static function instance($tableName = 'config'){
if(self::$_instance === null){
self::$_instance = new self($tableName);
You can’t perform that action at this time.