Skip to content

Instantly share code, notes, and snippets.

View anagha-todalbagi's full-sized avatar

Anagha Todalbagi anagha-todalbagi

View GitHub Profile
// Copyright 2016 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Command caption reads an audio file and outputs the transcript for it.
package main
import (
"fmt"
"io"
@anagha-todalbagi
anagha-todalbagi / git_cheat-sheet.md
Created October 27, 2017 22:36 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@anagha-todalbagi
anagha-todalbagi / download.js
Created April 27, 2017 22:36 — forked from mkaminsky11/download.js
How to manipulate Google Drive files
/*
Download a file
*/
function downloadFile(fileId) {
var request = gapi.client.drive.files.get({
'fileId': fileId
});
request.execute(function(resp) {
window.location.assign(resp.webContentLink);
});
@anagha-todalbagi
anagha-todalbagi / gist:10009335
Last active August 29, 2015 13:58
Hi, this is my answer submission for question 3. I picked this piece of code because this was one of the first programs that I wrote in high school and this got me excited about encryption!
#cipher text
def encrypt(sentence1, key):
code = ""
for char in sentence1:
c = ord(char) + int(key)
code = code + chr(c)
return code
def decrypt(sentence2, key):
code = ""
for char in sentence2: