Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
(function() { | |
var g = window.textCounter_g; | |
if (g) { | |
$("#textCountDart, #textCounter").remove(); | |
clearInterval(g.textCounting); | |
window.textCounter_g = null; | |
return; | |
} | |
g = window.textCounter_g = {}; | |
var countText = function() { |
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 time | |
import pygame | |
import pygame.midi | |
def main(args): | |
pygame.midi.init() | |
if args.list: |
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
def swap(a, b): | |
a = a ^ b | |
b = a ^ b | |
a = a ^ b | |
return a, b | |
def main(args): | |
print(swap(args.a, args.b)) |
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 numpy as np | |
import pandas as pd | |
def main(args): | |
np.random.seed(args.seed) | |
index = [] | |
history = [] | |
n_within_circle = 0 |
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 numpy as np | |
from PIL import Image | |
from tqdm import tqdm | |
class Mandelbrot(object): | |
def __init__(self, r1, r2, i1, i2, k, l): | |
self.r1 = min(r1, r2) | |
self.r2 = max(r1, r2) | |
self.i1 = min(i1, i2) |