Skip to content

Instantly share code, notes, and snippets.

Christophe Rosset topheman

Block or report user

Report or block topheman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@topheman
topheman / FizzBuzz.js
Created May 29, 2018
JavaScript Implementation of FizzBuzz in functional programming
View FizzBuzz.js
// 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 Aug 4, 2015
Travis setup of Github token for jspm
View jspm.travis.setup.md
View .npmrc
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 Jun 5, 2018
To keep track of my git config
View .gitconfig
[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 Jun 29, 2015
Git notes cheat sheet
View git-notes.md
View vagrant.setup.md
@topheman
topheman / .vimrc
Last active Oct 17, 2019
vim-config on Mac OS X
View .vimrc
" 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 Sep 27, 2013
Deviceorientation / orientationchange - tests
View gist:6729788
<DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="dataContainerOrientation">
No device orientation data
</div>
<script>
function init() {
You can’t perform that action at this time.