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
| /** | |
| * Auto-generated code below aims at helping you parse | |
| * the standard input according to the problem statement. | |
| **/ | |
| const S = readline(); | |
| // Write an answer using console.log() | |
| // To debug: console.error('Debug messages...'); | |
| console.error(S) |
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
| (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec |
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 bs4 import BeautifulSoup | |
| from urllib2 import urlopen | |
| from urlparse import urljoin | |
| import re | |
| for num in range(1, 150): | |
| url = "http://togif.me/catalog/" + str(num) | |
| res = urlopen(url) | |
| soup = BeautifulSoup(res.read()) | |
| links = soup.select('td a') |
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 re, os | |
| from random import shuffle | |
| r_unwanted = re.compile("[\n\t\r]") | |
| r_file = re.compile("cube([\d]+).txt") # шаблон имени файла | |
| dic = dict() | |
| num = 1000 # с чего начинаем нумерацию карт | |
| censored = ["Temple Garden", | |
| "Blood Crypt", |
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 getCPS = function(num) { | |
| var text = document.getElementById('rowInfoContent' + num.toString()).innerText.split('\n'); | |
| var count = parseInt(text[0].replace(/,/g, '').match(/\s(\d+)\s/)[1]); | |
| var production = parseFloat(text[1].replace(/,/g, '').match(/\s([\d,.]+)\s/)[1]); | |
| return production/count; | |
| } | |
| var getPrice = function(num) { | |
| return parseInt(document.getElementById('product' + num.toString()).children[1].children[1].innerText.replace(/,/g,'')) | |
| } |
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 dirs = {'north':0,'east':1,'south':2,'west':3}; | |
| var names = ['north','east','south','west']; | |
| var obs = {'north':north,'south':south,'west':west,'east':east}; | |
| result='east'; | |
| if (!direction) direction = 'east'; | |
| var left = function() { | |
| return names[(dirs[direction] + 3) % 4]; | |
| }; |
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
| $('div.item').find('li').each(function(i, el) { | |
| var price = parseFloat($(el).find('span.float-right.large').eq(0).text().split(' ')[0]); | |
| var dividend = $(el).find('span.portfolio-meta').eq(0).text(); | |
| var pattern = /Last Dividend: ([\d\.]+)/ | |
| var pattern_pval = /Portfolio Value:\s([\d\.,]+)e/ | |
| var nums = dividend.match(pattern); | |
| if (nums) { | |
| var divperprice = parseFloat(nums[1]) / price; | |
| console.log('Dividend per price for ' + $(el).find('div.influencer-portrait').find('a').eq(0).attr('href') + ': ' + divperprice); | |
| } |
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
| package main | |
| import bufio "bufio" | |
| import fmt "fmt" | |
| import os "os" | |
| func main() { | |
| var state = "0" | |
| var cache = " " | |
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 oc = function(a) { | |
| var o = {}; | |
| for(var i=0;i<a.length;i++) { | |
| o[a[i]]=''; | |
| } | |
| return o; | |
| } | |
| var http = require('http'), | |
| url = require('url'), |
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 crypto = require('crypto'); | |
| var key1 = 155712099; | |
| //var key1 = 829309203; | |
| var key2 = 173347027; | |
| // var key2 = 259970620; | |
| //var sign = '^n:ds[4U'; | |
| var sign = 'Tm[K T2u'; | |
| function intToBigEndian(intstr){ | |
| var st = new Buffer(4); |
NewerOlder