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 enum | |
| from copy import copy | |
| from types import DynamicClassAttribute | |
| from typing import List | |
| from django.db.models import QuerySet | |
| class OrderableMeta(enum.EnumMeta): | |
| def __new__(metacls, classname, bases, classdict, **kwds): |
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 asyncio | |
| from pyppeteer import launch | |
| async def main(): | |
| browser = await launch() | |
| page = await browser.newPage() | |
| await page.setContent(""" | |
| <!DOCTYPE html> | |
| <html> | |
| <body> |
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 cv2 | |
| import math | |
| import numpy as np | |
| from PIL import Image | |
| import itertools | |
| center1 = [450, 204] | |
| start1 = [402, 156] | |
| data1 = [156, 147, 122, 157, 148, 123, 157, 148, 123, 158, 150, 124, 159, 150, 125, 157, 149, 123, 157, 149, 123, 158, 150, 125, 155, 147, 122, 155, 148, 123, 151, 144, 119, 147, 141, 116, | |
| 146, 136, 113, 143, 134, 111, 148, 137, 114, 152, 143, 119, 155, 145, 120, 156, 147, 122, 154, 146, 121, 155, 147, 122, 155, 147, 122, 154, 146, 121, 151, 143, 118, 148, 141, 117, |
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
| ##### | |
| # | |
| # PyGlow | |
| # | |
| ##### | |
| # | |
| # Python module to control Pimoronis PiGlow | |
| # [http://shop.pimoroni.com/products/piglow] | |
| # | |
| # For more information and documentation see: |
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
| <template> | |
| <table> | |
| <tr> | |
| <th></th> | |
| <th v-for="(playerNumber, index) in numberOfPlayers" :key="index"> | |
| <input | |
| size="2" type="text" | |
| v-model="players[index].name" | |
| @input="playerInput(index)" | |
| > |
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 upperenv; | |
| import java.util.ArrayList; | |
| public abstract class UpperEnvelope { | |
| ArrayList<Bar> bars = new ArrayList<Bar>(); | |
| ArrayList<Point> points = new ArrayList<Point>(); | |
| int width = 0; | |
| int height = 0; |
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 | |
| import collections | |
| variableAssignmentRegex = re.compile(r"([a-zA-Z_]+)\s*=\s*(\d*)") | |
| commandRegex = re.compile(r"^(:\w+:)?\s*([A-Z]+)\s*([-\w]+)?(')?") | |
| jumpRegex = re.compile(r"(C[FB][\+\?])(:\w+:)") | |
| variableInitFormat = "N{} {}" | |
| lineerror = "Error in line [{}]: {}" |
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 turtle | |
| def drawBranch(pen, length, count=0): | |
| if count > 5: | |
| return | |
| else: | |
| count += 1 | |
| coors = (pen.xcor(), pen.ycor()) | |
| heading = pen.heading() |
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
| vector<vector<double>> m, tmp; | |
| vector<double> R, L; | |
| const double min(5.0), max(25.0); | |
| if (string(argv[1]) == "-c") { | |
| vector<vector<Complex>> m, tmp; | |
| vector<Complex> R, L; | |
| const Complex min(5.0, 5.0), max(25.0, 25.0); | |
| } |
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
| { | |
| "name": "Win32", | |
| "includePath": [ | |
| "${workspaceRoot}", | |
| "${workspaceRoot}/include", | |
| "C:/msys64/mingw64/include/c++/7.2.0", | |
| "C:/msys64/mingw64/include/c++/7.2.0/x86_64-w64-mingw32", | |
| "C:/msys64/mingw64/include/c++/7.2.0/backward", | |
| "C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include", | |
| "C:/msys64/mingw64/include", |
NewerOlder