View Function_getCurrencyCode.vb
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
Private Function getCurrencyCode(ByVal selectedIndex As Integer) As String | |
Dim str As String = "" | |
selectedIndex += 1 | |
Select Case selectedIndex | |
Case 1 | |
str = "AED" | |
Case 2 | |
str = "ANG" | |
Case 3 | |
str = "ARS" |
View mtk_custom_usb.h
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
#ifndef MTK_USB_CUSTOM_H | |
#define MTK_USB_CUSTOM_H | |
/* Force full-speed is not guaranteed with adb function, use it with care! */ | |
//#define USB_FORCE_FULL_SPEED | |
#define USB_MS_PRODUCT_ID 0x0001 | |
#define USB_MS_ADB_PRODUCT_ID 0x0c03 | |
#define USB_RNDIS_PRODUCT_ID 0x0003 | |
#define USB_RNDIS_ADB_PRODUCT_ID 0x0004 |
View SampleMeaningsCodeOne.py
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 urllib2 | |
#read response for word 'Excitement' | |
response = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/meanings?q=excitement') | |
html = response.read() | |
html = html[1:] #remove first { | |
html = html[:-1] #remove last } | |
html = html.split('}{') #split with '}{' | |
print html[0] #Print 1st result | |
print html[1] #Print 2ns result |
View MeaningsAPI.py
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 urllib2 | |
print "Enter a word:", | |
q = raw_input() #get word from user | |
response = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/meanings?q='+q) | |
html = response.read() | |
html = html[1:] #remove first { | |
html = html[:-1] #remove last } | |
html = html.split('}{') #split and put each resutls to array | |
for meanings in html: | |
print meanings |
View WeatherAPI.py
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
# -*- coding: utf-8 -*- | |
import urllib | |
import urllib2 | |
def celsius(a): | |
responsex = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/unitconversion?q=' + urllib.quote(a + ' in celsius')) | |
html = responsex.read() | |
responsex.close() | |
html = html[1:] #remove first { | |
html = html[:-1] #remove last } |
View SampleWindowsPhoneImplementationOfEvalAPI.cs
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
using System.Net; | |
//this method can be called in a button tap event | |
private void calculate() | |
{ | |
string calculationText = txtInput.Text; | |
try | |
{ | |
WebClient wc = new WebClient(); |
View jsbin.oBADEMUW.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<button onclick="getWeather(31.12819929911196,84.55078125,function (data) { | |
console.log('weather data received'); |
View 10000 digits of π
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
314159265358979323846264338327950288419716939937510 | |
58209749445923078164062862089986280348253421170679 | |
82148086513282306647093844609550582231725369154495 | |
87196202546254399102534602031340359642843665440272 | |
12069215943595139508012475692954599679411918121173 | |
42942063040293577778783047052931650057536697320417 | |
07972854902135844325625298889420641258066664202073 | |
68475692618677620816824692229984289511080718876068 | |
32100239939757234316322022119788183517677868967303 | |
19141416286753270466001648497435820992474374991568 |
View PrintPI.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Numerics; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace PrintPI | |
{ | |
class Program |
View PlayAudioInLaunchWP.cs
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
public MainPage() | |
{ | |
InitializeComponent(); | |
startBackgroundMusic(); | |
} | |
private void startBackgroundMusic() | |
{ | |
this.Dispatcher.BeginInvoke(() => | |
{ |
OlderNewer