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
| <html> | |
| <head> | |
| <title>Delhi Radio</title> | |
| <script src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js"></script> | |
| <script src="radio.js"> | |
| function sing(songResult) { | |
| var marquee = "", | |
| songName = ""; | |
| try { | |
| marquee = songResult.results[0] + ""; |
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
| import sublime | |
| import sublime_plugin | |
| class CodeinjectorCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| sels = self.view.sel() | |
| for sel in sels: | |
| string = self.view.substr(sel) | |
| self.view.replace(edit, sel, "hello "+string); |
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
| function getXPath(url) { | |
| if (url.indexOf('http://www.w3schools.com/') >= 0) { | |
| return '//div[@class="example_code notranslate"]'; | |
| } | |
| if (url.indexOf('http://www.php.net/') >= 0 || url.indexOf('http://php.net/') >= 0) { | |
| return '//div[@class="phpcode"]'; | |
| } | |
| return '//pre'; | |
| } |
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
| /* | |
| http://www.JSON.org/json2.js | |
| 2010-03-20 | |
| Public Domain. | |
| NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| See http://www.JSON.org/js.html |
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
| var toMarkdown = function(string) { | |
| var ELEMENTS = [{ | |
| patterns: 'p', | |
| replacement: function(str, attrs, innerHTML) { | |
| return innerHTML ? '\n\n' + innerHTML + '\n' : ''; | |
| } | |
| }, { | |
| patterns: 'br', | |
| type: 'void', | |
| replacement: '\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
| function getCurrentYear(){ | |
| return (new Date()).getYear()+1900; | |
| } | |
| function isLeapYear(year) { | |
| var d = new Date(year, 1, 29); | |
| return d.getMonth() == 1; | |
| } | |
| function getMonthDays(month,year){ | |
| var monthDays=[31,28,31,30,31,30,31,31,30,31,30,31]; | |
| month=month%12; |
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
| function getGroupCallBackGenerator(timeOut,finalCallback){ | |
| var waitingStatus={}; | |
| var resultObject={}; | |
| var started=false; | |
| var timedOut=false; | |
| var timer=setTimeout(function(){ | |
| timedOut=true; | |
| if(typeof(finalCallback)=="function"){ | |
| finalCallback(resultObject); | |
| } |
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
| function pullData() { | |
| //select * from yahoo.finance.quote where symbol in ("YHOO","AAPL","GOOG","MSFT") | |
| var url="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quote%20where%20symbol%20in%20(%22YHOO%22%2C%22AAPL%22%2C%22GOOG%22%2C%22MSFT%22)&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"; | |
| var response = UrlFetchApp.fetch(url); | |
| var json=JSON.parse(response.getContentText()); | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = ss.getSheets()[0]; | |
| var quotes=json.query.results.quote; | |
| for(var i=0;i<quotes.length;i++){ | |
| col=i+1; |
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
| dsgsdfgsdfg |
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
| # bash/zsh git prompt support | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # This script allows you to see repository status in your prompt. | |
| # | |
| # To enable: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |