This file contains 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
##get a way to flag wrong lyrics and search for ?? | |
##-the next search result next time the program is run | |
##-song name+artist | |
##-song name+album | |
##write an android app to insert link into the music player: | |
##-link to lyrics if present in local; else | |
##-link to google to search if net is connected; else | |
##-disabled link | |
try: |
This file contains 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
#TODO : | |
#use dictionaries in modules instead of creating and destroying every time it runs | |
try: | |
import urllib.request as urllib2 | |
except: | |
import urllib2 | |
import bs4 | |
from bs4 import BeautifulSoup | |
import re |
This file contains 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
##code to copy all the songs in the playlist to the directory specified | |
import os | |
import shutil | |
sourcePL = 'C:\\Users\\saranya.v\\Music\\Playlists\\Sleep.wpl' | |
#destDir = 'E:\\Music\\Lyrics\\' | |
destDir = 'D:\\Move\\tmp\\' | |
LOG_LEVELS = { |
This file contains 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
##code to extract all the ebooks from http://inzania.com/temp/kindle/books/ and save it to a directory | |
try: | |
import urllib.request as urllib2 | |
except: | |
import urllib2 | |
import bs4 | |
from bs4 import BeautifulSoup | |
destDir = 'E:\\Books\\New folder\\tmp\\' |
This file contains 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
function merge(a, b) { | |
var c = new Array(); | |
var k=0; | |
while(a.length || b.length) { | |
if(b.length == 0 || a[0]<=b[0]) { | |
c[k] = a.shift(); | |
} else { | |
c[k] = b.shift(); | |
} | |
k++; |
This file contains 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
//Kindergarten addition | |
/** | |
* sum of two huge numbers | |
* @param {[string]} str1 | |
* @param {[string]} str2 | |
* @return {[string]} [sum] | |
*/ | |
function sum(str1, str2) { | |
var carry = 0; | |
var result = ""; |
This file contains 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
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <limits.h> | |
#include <stdbool.h> | |
int main(){ | |
int t; |
This file contains 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
Show hidden characters
{ | |
"browser": true, | |
"node": true, | |
"curly": true, | |
"devel": true, | |
"globals": { | |
"ActiveXObject": true, | |
"async": true, | |
"moment": true, |
This file contains 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); | |
let myCourse = Course.create(); | |
myCourse.set('description', 'In this course, we\'ll learn about cats!'); | |
alert(myCourse.languageName('js')); |
This file contains 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
OlderNewer