Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre Spring caillou

View GitHub Profile
View zsh-macos.md

ZSH Configuration

brew install zsh pure fzf

# install "Oh My ZSH!"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@caillou
caillou / gist:1446583
Created Dec 8, 2011
Translation for relativeDate of moment.js
View gist:1446583
/*jslint white: false */
var langs;
langs = {
"de" : {
today: "heute um %time",
tomorrow: 'morgen um %time',
next: '%weekday um %time',
yesterday: 'gestern um %time',
View gist:b88a97c559768c5f495b
> make -f clouds/makefile upload
cat build/clouds/clouds.d build/clouds/cv_scaler.d build/clouds/resources.d build/clouds/settings.d build/clouds/ui.d build/clouds/adc.d build/clouds/codec.d build/clouds/debug_port.d build/clouds/gate_input.d build/clouds/leds.d build/clouds/switches.d build/clouds/system.d build/clouds/correlator.d build/clouds/granular_processor.d build/clouds/mu_law.d build/clouds/frame_transformation.d build/clouds/phase_vocoder.d build/clouds/stft.d build/clouds/atan.d build/clouds/units.d build/clouds/random.d build/clouds/bootloader_utils.d build/clouds/system_clock.d build/clouds/core_cm3.d build/clouds/system_stm32f4xx.d build/clouds/misc.d build/clouds/stm32f4xx_adc.d build/clouds/stm32f4xx_can.d build/clouds/stm32f4xx_crc.d build/clouds/stm32f4xx_cryp_aes.d build/clouds/stm32f4xx_cryp.d build/clouds/stm32f4xx_cryp_des.d build/clouds/stm32f4xx_cryp_tdes.d build/clouds/stm32f4xx_dac.d build/clouds/stm32f4xx_dbgmcu.d build/clouds/stm32f4xx_dcmi.d build/clouds/stm32f4xx_dma.d build/clo
View gist:6fb29e25e814896d9732
vagrant@vagrant-ubuntu-trusty-64:/vagrant/eurorack-modules$ make -f peaks/makefile upload
openocd -f stmlib/programming/jtag/interface_arm-usb-ocd-h.cfg -f stmlib/programming/jtag/stm32f10x_jtag.cfg -f stmlib/programming/jtag/prelude_f10x.cfg -f stmlib/programming/jtag/erase_f10x.cfg -c "flash write_bank 0 build/peaks/peaks_bootloader_combo.bin 0x0" -c "verify_image build/peaks/peaks_bootloader_combo.bin" -f stmlib/programming/jtag/postlude.cfg || openocd -f stmlib/programming/jtag/interface_arm-usb-ocd-h.cfg -f stmlib/programming/jtag/stm32f10x_jtag.cfg -f stmlib/programming/jtag/prelude_f10x.cfg -f stmlib/programming/jtag/erase_f10x.cfg -c "flash write_bank 0 build/peaks/peaks_bootloader_combo.bin 0x0" -c "verify_image build/peaks/peaks_bootloader_combo.bin" -f stmlib/programming/jtag/postlude.cfg
Open On-Chip Debugger 0.9.0 (2016-02-16-21:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kH
View README.md
  • iTerm (free) it a terminal that allows split panes and many other features.
  • oh my zsh zsh plugins, cool terminal FTW!
plugins=(git nvm bower brew npm autojump docker)
View communes.json
[{"zip":"1002","0":"1002","name":"Lausanne","1":"Lausanne","y":"536715","2":"536715","x":"151315","3":"151315","latitude":"46.5101","4":"46.5101","longitude":"6.61407","5":"6.61407","merc_x":"736275","6":"736275","merc_y":"5831470","7":"5831470","pixel_x":"177","8":"177","pixel_y":"437","9":"437","canton":"VD","10":"VD"},{"zip":"1008","0":"1008","name":"Prilly","1":"Prilly","y":"534375","2":"534375","x":"153265","3":"153265","latitude":"46.5275","4":"46.5275","longitude":"6.58331","5":"6.58331","merc_x":"732851","6":"732851","merc_y":"5834260","7":"5834260","pixel_x":"170","8":"170","pixel_y":"431","9":"431","canton":"VD","10":"VD"},{"zip":"1009","0":"1009","name":"Pully","1":"Pully","y":"538470","2":"538470","x":"150535","3":"150535","latitude":"46.5033","4":"46.5033","longitude":"6.63704","5":"6.63704","merc_x":"738832","6":"738832","merc_y":"5830360","7":"5830360","pixel_x":"182","8":"182","pixel_y":"440","9":"440","canton":"VD","10":"VD"},{"zip":"1020","0":"1020","name":"Renens","1":"Renens","y":"533595",
View gist:3342462
{
"color_scheme": "Packages/User/Monokai-Seld.tmTheme",
"font_size": 15.0,
"ignored_packages":
[
"SublimeCodeIntel"
],
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}
View horror.less
.tree > ul > li > ul > li > ul > li {
@levelPadding: 25px;
padding-left: @levelPadding;
& > ul > li {
margin-left: -@levelPadding;
padding-left: @levelPadding * 2;
& > ul > li {
margin-left: -@levelPadding * 2;
padding-left: @levelPadding * 3;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style type="text/css">
path {
fill: none;
stroke: black;
}
</style>