Skip to content

Instantly share code, notes, and snippets.

View dakerfp's full-sized avatar

Daker Fernandes Pinheiro dakerfp

View GitHub Profile
import Part
import FreeCAD
from FreeCAD import Base
TABLETOP_SLACK = 1 # in
LEG_WIDTH = 1.5 # in
TABLE_HEIGHT = 3 * 12 # 3ft
BEAM_WIDTH = 3/4 # in
BEAM_HEIGHT = 1.5 # in
#include <stack>
#include <cassert>
using namespace std;
namespace hanoi {
static void move(stack<int>& from, stack<int>& to)
{
// https://orteil.dashnet.org/cookieclicker/
var cookie = document.getElementById("bigCookie")
var cookieIntervalId = setInterval(function() {
cookie.click();
}, 100);
import requests
from bs4 import BeautifulSoup
import re
from bs4.element import ContentMetaAttributeValue
def trim(s):
return s.strip().replace('\n', '')
class Color(object):
from enum import Enum
from random import randint
class Weather(Enum):
CLEAR = auto()
CLOUDY = auto()
RAINY = auto()
def next(self):
d6 = randint(1,6)
import math
def inches_to_cm(inches):
return inches * 2.54
def feet_to_inches(ft):
return 12 * ft
def perimeter(w, h):
return 2 * w + 2 * h
# Mold #50 - Wizard Tower
# Mold #55 - Bell tower
# Mold #65 - Ruined tower
# Mold #60 - Prison tower
# Mold #63 - Octagon Tower
# Mold #226 - Wooden Beam
# #245 - Slate Shingle Roof
# #259 - Rubble Bridge
import math
# Mold #50 - Wizard Tower
# Mold #55 - Bell tower
# Mold #65 - Ruined tower
# Mold #60 - Prison tower
# Mold #63 - Octagon Tower
# Mold #226 - Wooden Beam
# #245 - Slate Shingle Roof
# #259 - Rubble Bridge
import math
@dakerfp
dakerfp / zero.go
Created June 16, 2017 00:16
Utility to pad a writer with zeros
package zero
import (
"io"
)
type ZeroPad struct {
w io.WriteCloser
nleft int
}
This file has been truncated, but you can view the full file.
*** Cleaning fonts *** [1/1](B
]0;jhbuild:Cleaning fonts [1/1]make -j 16 clean
*** success *** [1/1](B
]0;jhbuild:success [1/1]Updating EFL port dependencies using jhbuild...
Fetching origin
gnome-autogen.sh not available
gnome-doc-tool not available
Configuring jhbuild without autotools
Now type `make' to compile jhbuild
make[1]: Entering directory `/home/dakerfp/work/WebKitBuild.nix/Dependencies/Source/jhbuild/po'