A Pen by Théophile Cailliau on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint node: true */ | |
'use strict'; | |
//Initialize vars | |
var value = '00000'; | |
var int = 0; | |
var finalString = ""; | |
//Main code | |
while(!selfDescripting(value)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
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
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
COLOR='\033[1;32m' | |
NC='\033[0m' # No Color | |
log() { | |
echo -e "${COLOR}#" $@ "${NC}" | |
} |
WebkitGTK versions 4.0 is being removed from gentoo's main repo, in favour of the equivalent 4.1 version. This breaks PlaydateSimulator
which dynamically loads libwebkit2gtk-4.0.so.37
.
The dirty hack would be to symlink the newer sofiles to the old filenames. Any sane person would dislike this approach though, as it specifically works around the package manager and messes with system-wide libraries. Instead, we can patch the ELF to directly request the newer versions.
cd $PLAYDATE_SDK_PATH
cd bin
patchelf --replace-needed libwebkit2gtk-4.0.so.37 libwebkit2gtk-4.1.so PlaydateSimulator