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
from random import randint | |
def helloworld(): | |
matrix = [] | |
init_data(matrix) | |
print_data(matrix) | |
#celebrity_index = find_celebrity_naive(matrix) | |
celebrity_index = find_celebrity_stack(matrix) |
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
window.i18n = window.i18n || {}; | |
i18n._langCache = {} | |
i18n._availableLangs = [ | |
'en', | |
'zh-TW', | |
'ja' | |
] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
using System.Net; | |
using System.Xml.Linq; | |
using System.Xml.Serialization; | |
namespace ConsoleApplication2 |
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
HttpUrlconnection connection = null; | |
BufferedReader reader = null; | |
String forecastJsonStr = null; | |
try { | |
URL url = new URL("http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7"); | |
connection = (HttpUrlconnection) url.openConnection(); | |
connection.setRequestMethod("GET"); | |
connection.connect(); | |