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
# ------------------------ | |
# Generate Fibonacci sequence of length N | |
# ------------------------ | |
def fibonacci_sequence(n): | |
sequence = [0, 1] | |
for i in range(2, n): | |
sequence.append(sequence[-1] + sequence[-2]) | |
return sequence[:n] |
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
/* | |
Gulp is a task runner that handles task like | |
- compile Sass to CSS | |
- concatenation and minification of js, css files | |
- watch for changes in a directory | |
- run a local server and reload the browser during development | |
*/ | |
var gulp = require('gulp'); | |
var gulpIf = require('gulp-if'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>i18n demo</title> | |
</head> | |
<body> | |
<div id="foo"></div> | |
<div id="bar"></div> | |
<script type="text/javascript"> |