Skip to content

Instantly share code, notes, and snippets.

View amtsh's full-sized avatar
🏠
Working from home

Amit Shinde amtsh

🏠
Working from home
View GitHub Profile
# ------------------------
# 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]
@amtsh
amtsh / gulpfile.js
Created August 13, 2017 15:00
Starter Gulp file for sass, js/css minification and development browser reload
/*
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');
@amtsh
amtsh / i18n.html
Created February 3, 2017 15:55
HTML page that provides content in multiple languages.
<!DOCTYPE html>
<html>
<head>
<title>i18n demo</title>
</head>
<body>
<div id="foo"></div>
<div id="bar"></div>
<script type="text/javascript">