Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View FliiFe's full-sized avatar
💭

Théophile Cailliau FliiFe

💭
View GitHub Profile
@FliiFe
FliiFe / self-descriptive.js
Last active January 8, 2016 18:47
The Self Descriptive Number. James Grime's/Matt Parker "challenge".
//You can ignore this, this is for the editor.
/*jslint node: true */
'use strict';
//Initialize vars
var visited = [];
var first = '0000000000';
var alternativeMethod = false;
var result = first; //Should get to 6210001000
@FliiFe
FliiFe / bruteforce-self-descriptive.js
Created January 8, 2016 16:51
Bruteforcing the self-descriptive number.
/*jslint node: true */
'use strict';
//Initialize vars
var value = '00000';
var int = 0;
var finalString = "";
//Main code
while(!selfDescripting(value)){
@FliiFe
FliiFe / designer.html
Last active January 11, 2017 16:59
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
@FliiFe
FliiFe / bgyjpb.markdown
Last active January 28, 2017 21:12
SDD POWA
@FliiFe
FliiFe / README.md
Created May 10, 2017 12:03
A base16-shell script to configure your terminal.

Jay base16-shell

This script is made to be used along base16-shell. Just put it in scripts/ and use jay as the colorscheme.

I take no credit for this, full credit is given to josuegaleas

Keybase proof

I hereby claim:

  • I am fliife on github.
  • I am fliife (https://keybase.io/fliife) on keybase.
  • I have a public key ASDF_klGxhU0wwwCLYGALxTgbFoBHRdLCRbkcBDVus4_Bwo

To claim this, I am signing this object:

@FliiFe
FliiFe / ctan2devhelp.fish
Created March 21, 2019 21:11
A quick and dirty script to transform ctan documentation pdf to devhelp booklet
#!/usr/bin/env fish
#
# Smelly code ahead
set file $argv[1]
set bn (basename $file | rev | cut -d. --complement -f1 | rev)
set pdf2htmlEX docker run -ti --rm -v (pwd):/pdf bwits/pdf2htmlex pdf2htmlEX
$pdf2htmlEX --printing 0 --embed-outline 0 --zoom 1.2 $file
@FliiFe
FliiFe / build_sioyek.sh
Last active April 19, 2024 17:20
An almost self-contained bash script that builds sioyek from scratch
#!/usr/bin/env bash
COLOR='\033[1;32m'
NC='\033[0m' # No Color
log() {
echo -e "${COLOR}#" $@ "${NC}"
}
WD=$(mktemp -d)