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
| { | |
| "_type" : { | |
| "_name" : "ActionTestSummary", | |
| "_supertype" : { | |
| "_name" : "ActionTestSummaryIdentifiableObject", | |
| "_supertype" : { | |
| "_name" : "ActionAbstractTestSummary" | |
| } | |
| } | |
| }, |
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
| { | |
| "version": 8, | |
| "name": "Raster Tiles", | |
| "sources": { | |
| "yourTileLayer": { | |
| "type": "raster", | |
| "tiles": [ | |
| "https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png" | |
| ], | |
| "tileSize": 256 |
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 sys | |
| import requests | |
| import os | |
| import json | |
| def upate_comment(url, message, token): | |
| headers = {'Authorization': 'token ' + token} | |
| payload = {'body': message} | |
| res = requests.patch(url, json=payload, headers=headers) |
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 sys | |
| import requests | |
| import os | |
| import json | |
| def upate_comment(url, message, token): | |
| headers = {'Authorization': 'token ' + token} | |
| payload = {'body': message} | |
| req = requests.patch(url, json=payload, headers=headers) |
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
| AUD - Australian dollar | |
| BGN - Bulgarian lev | |
| BRL - Brazilian real | |
| CAD - Canadian dollar | |
| CHF - Swiss franc | |
| CNY - Renminbi (Chinese) yuan | |
| CZK - Czech koruna | |
| DKK - Danish krone | |
| EUR - Euro | |
| GBP - Pound sterling |
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
| START TRANSACTION; | |
| UPDATE `rating` AS R | |
| INNER JOIN ( | |
| SELECT IFNULL(SUM(`exp`), 0) AS `exp`, `course`, `user` | |
| FROM `rating` | |
| WHERE `updated_at` < NOW() - INTERVAL 1 WEEK | |
| GROUP BY `course`, `user` | |
| ) AS R2 ON R2.`course` = R.`course` AND R2.`user` = R.`user` | |
| INNER JOIN ( |
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
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
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 vk | |
| from time import sleep | |
| GROUP = 100000 | |
| IMG = "https://pp.vk.me/ccc/vvv/11111/NJSUbjs.jpg" | |
| api = vk.API(vk.Session()) | |
| offset = 0 | |
| count = api.groups.getMembers(group_id=GROUP)['count'] |
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 matplotlib.pyplot as plt | |
| import math | |
| import numpy as np | |
| def euler(h, a, b, _y1, _y2): | |
| x = a | |
| ans = [] | |
| y1, y2 = _y1, _y2 | |
| while x <= b + h: | |
| ans.append((x, y1, y2)) |
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 java.awt.*; | |
| import model.*; | |
| import static java.lang.StrictMath.*; | |
| import java.util.*; | |
| import java.text.DecimalFormat; | |
| import java.util.Scanner; | |
| import java.io.PrintWriter; |