Skip to content

Instantly share code, notes, and snippets.

@Meroje
Meroje / 0-README.md
Last active August 29, 2015 13:58
The Twitter emoji scanner

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.

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 / index.html
Last active August 29, 2015 14:01
Map Marker
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen - Pen</title>
</head>
#!/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'
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/**"], {

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:

[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č
@Meroje
Meroje / index.html
Created April 10, 2015 12:08
Novius OS js modules graph, created with https://github.com/auchenberg/dependo
<html>
<head>
<title>dependo</title>
<style>
body {
background: #fff;
padding:0;
margin:0;
font-family:helvetica,arial;
overflow: hidden;
__devinit est déprecié, ajouter:
```
#ifndef __devinit
#define __devinit
#define __devinitdata
#endif
```
@Meroje
Meroje / Makefile
Created January 19, 2012 08:41
Autocompile tex files with latexmk, simply run 'watchr latex.rb'. Works very well with Dropbox
TEXFILES := $(shell find . -name "*.tex")
PDFFILES := $(patsubst %.tex,%.pdf,$(TEXFILES))
all: $(PDFFILES) clean
%.pdf: %.tex
@latexmk -pdf $<
clean:
@rm -f *.aux