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
billy gets 🎁 | |
jill gets 💩 | |
Jen gets 🎁 |
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
def C(): | |
return "bat" | |
def С(): | |
return "man" | |
if __name__ == "__main__": | |
print(C(), С()) |
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
def is_fib(candidate, known_fibs=[0,1]): | |
last_fib = known_fibs[-1] | |
if candidate == last_fib: | |
return "IsFibo" | |
elif candidate < last_fib: | |
return "IsNotFibo" | |
else: | |
next_fib = last_fib + known_fibs[-2] | |
new_fibs = known_fibs + [next_fib] | |
return is_fib(candidate, known_fibs=new_fibs) |
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.util.HashMap; | |
import java.util.Map; | |
public class Test { | |
public static void main(String[] args) { | |
Map<Integer, String> tens = new HashMap<Integer, String>(){{ | |
put(10, "ten"); | |
put(20, "twenty"); | |
put(30, "thirty"); | |
put(40, "fourty"); | |
put(50, "fifty"); |
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 github import Github | |
token = '<Token>' | |
pr_number = 1126 | |
g = Github(token) | |
repo = g.get_repo('<Repo>') | |
pr = repo.get_pull(pr_number) | |
with open('diff-cover.txt') as f: | |
pr.create_issue_comment(f.read()) |
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 python3 | |
import os | |
import urllib | |
import urllib.request | |
import sys | |
import re | |
import json | |
TITLE = "title" |
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 | |
from __future__ import unicode_literals, print_function | |
import os | |
import urllib | |
import urllib2 | |
import sys | |
import re | |
import json | |
TITLE = "title" |
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
[18, 91, 15] |
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
s = """Gur Mra bs Clguba, ol Gvz Crgref | |
Ornhgvshy vf orggre guna htyl. | |
Rkcyvpvg vf orggre guna vzcyvpvg. | |
Fvzcyr vf orggre guna pbzcyrk. | |
Pbzcyrk vf orggre guna pbzcyvpngrq. | |
Syng vf orggre guna arfgrq. | |
Fcnefr vf orggre guna qrafr. | |
Ernqnovyvgl pbhagf. | |
Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf. |
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
<?xml version="1.0" ?> | |
<!DOCTYPE coverage | |
SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'> | |
<coverage branch-rate="0" line-rate="1" timestamp="1404088604881" version="3.7.1"> | |
<!-- Generated by coverage.py: http://nedbatchelder.com/code/coverage --> | |
<packages> | |
<package branch-rate="0" complexity="0" line-rate="1" name=""> | |
<classes> | |
<class branch-rate="0" complexity="0" filename="test.py" line-rate="1" name="test"> | |
<methods/> |