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
""" | |
Migrate from model_mommy to model_bakery. | |
``python from_mommy_to_bakery.py --dry-run`` | |
Please check your dependency files. | |
""" | |
import argparse | |
import os |
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
# Author: Berin | |
# Sketches repo: https://github.com/berinhard/sketches | |
from collections import namedtuple | |
from abc import ABCMeta, abstractmethod | |
WHITE = color(235, 235, 235) | |
BLACK = color(27, 27, 27) | |
BLUE = color(55,189,182) | |
def setup(): |
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
# Alexandre B A Villares - https://abav.lugaralgum.com/sketch-a-day | |
# More explorations of lines in grids | |
from pytop5js import * | |
W = None | |
H = None | |
num = None | |
line_combos = None |
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
/* | |
This sketch is an adaptation from Sighack's Gcode Export | |
Blog post: https://sighack.com/post/processing-boilerplate-with-gcode-export | |
*/ | |
import geomerative.*; | |
/* | |
* Gcode-generation settings. Edit these as per your needs. | |
* CONFIG_SVGS_DIR : Directory containing the SVG files | |
* CONFIG_PRINT_WIDTH_MM : The width of paper in mm |
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 math | |
class Posicao(): | |
def __init__(self, lat, lng): | |
self.lat, self.lng = lat, lng | |
@property | |
def lat(self): | |
return math.degree(self.phi) |
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
class Wallet: | |
def __init__(self, money): | |
self.money = money | |
def subtract(self, amount): | |
self.money -= amount | |
def add(self, amount): | |
self.money += amount |
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
class Wallet: | |
def __init__(self, money): | |
self.money = money | |
def subtract(self, amount): | |
self.money -= amount | |
def add(self, amount): | |
self.money += amount |
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
class Wallet: | |
def __init__(self, money): | |
self.money = money | |
def subtract(self, amount): | |
self.money -= amount | |
def add(self, amount): | |
self.money += amount |
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 math | |
class Posicao(): | |
def __init__(self, lat, lng): | |
self.lat, self.lng = lat, lng | |
self.geometria = GeometriaPlana() | |
self.unidade = UnidadeQuilometro() | |
@property |
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 math | |
class Posicao(): | |
PLANA, ESFERICA, ELIPTICA = 'plana', 'esferica', 'eliptica' | |
KM, M, MILHAS = 'kms', 'm', 'miles' | |
def __init__(self, lat, lng): | |
self.lat, self.lng = lat, lng | |
self.geometria = self.PLANA | |
self.unidade = self.KM |