Skip to content

Instantly share code, notes, and snippets.

View topheman's full-sized avatar
🦀

Christophe Rosset topheman

🦀
View GitHub Profile
@topheman
topheman / FizzBuzz.js
Created May 29, 2018 21:30
JavaScript Implementation of FizzBuzz in functional programming
// http://wiki.c2.com/?FizzBuzzTest
const result = Array.from(Array(100), (_, i) => i + 1).map(number => {
if (number%5 === 0 && number%3 === 0) {
return "FizzBuzz";
}
if (number%3 === 0) {
return "Fizz";
}
if (number%5 === 0) {
return "Buzz";
@topheman
topheman / jspm.travis.setup.md
Created August 4, 2015 18:49
Travis setup of Github token for jspm
init-author-name=Christophe Rosset
init-author-email=tophe@topheman.com
init-author-url=http://labs.topheman.com
init-version=0.0.1
init-license=MIT
message=Bump to v%s
@topheman
topheman / .gitconfig
Last active June 5, 2018 14:28
To keep track of my git config
[core]
excludesfile = /Users/Tophe/.gitignore_global
editor = vi
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
@topheman
topheman / git-notes.md
Created June 29, 2015 17:39
Git notes cheat sheet
@topheman
topheman / vagrant.setup.md
Last active August 29, 2015 14:23
Vagrant
@topheman
topheman / .vimrc
Last active March 9, 2024 09:48
vim-config on Mac OS X
" Vundle config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@topheman
topheman / gist:6729788
Created September 27, 2013 14:48
Deviceorientation / orientationchange - tests
<DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="dataContainerOrientation">
No device orientation data
</div>
<script>
function init() {