Skip to content

Instantly share code, notes, and snippets.

View catb0t's full-sized avatar
💭
hmm

Cat Stevens catb0t

💭
hmm
View GitHub Profile
magnet:?xt=urn:btih:f13a268b242f4e0ecdbb75a5755846884b02f0b2&dn=Win7.SP1.x86-x64.Rus-Eng.18in1.Activated.v5&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
Clang C: -Wall -Wextra -Wfloat-equal -Winline -Wundef -Werror -fverbose-asm -Wint-to-pointer-cast -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wunreachable-code -Wstrict-overflow=5 -Wwrite-strings -Wconversion --pedantic-errors -ggdb -Wredundant-decls -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -std=gnu11 -c -Wno-language-extension-token -Wno-gnu
Clang C++: -Wall -Wextra -Wfloat-equal -Winline -Wundef -Werror -fverbose-asm -Wint-to-pointer-cast -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wunreachable-code -Wstrict-overflow=5 -Wwrite-strings -Wconversion --pedantic-errors -ggdb -Wredundant-decls -Wuninitialized -std=c++14
GCC C: -Wall -Wextra -Wfloat-equal -Winline -Wundef -Werror -fverbose-asm -Wint-to-pointer-cast -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wunreachable-code -Wstrict-overflow=5 -Wwrite-strings -Wconversion --pedantic-errors -Wredundant-decls -Wuninitialized
-Wstrict-prototypes -Wmissing-prototypes -std=gnu11 -xc -c
GCC C++: -Wall -Wextra -Wfloat-equal -W
@catb0t
catb0t / wh.c
Created February 5, 2017 13:10
winhak
#include <unistd.h>
#include <stdbool.h>
/*
if path to windows installation is provided then only use that
if a path to scan is provided, test all the subfolders for windows installations
if a path selected as a windows installation is determined to have the patch applied,
*/
#pragma config(Motor, port1, , tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port2, m_clawL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, m_armL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, m_drvR, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port6, m_drvL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port7, m_armR, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port8, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port9, m_clawR, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port10, , tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port1, , tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port2, m_clawL, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, m_armL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, m_drvR, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port6, m_drvL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port7, m_armR, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port8, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port9, m_clawR, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port10, , tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port1, m_clawL, tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port2, m_drvL, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, , tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port5, m_armL, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port6, m_armR, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port7, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port8, , tmotorVex393_MC29, openLoop)
#pragma config(Motor, port9, m_drvR, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port10, m_clawR, tmotorVex393_HBridge, openLoop)
@catb0t
catb0t / carloan.java
Created September 21, 2016 11:40
carloan
double monthlyRate = interestRate / 12f;
double finalPrice = (
carPrice * (
monthlyRate * (
Math.pow( (1f + monthlyRate), loanLength)
) / (
Math.pow( (1f + monthlyRate), loanLength) - 1f))); //Car loan forumla.
finalPrice = Math.floor(finalPrice); //Flooring to make it look nice.
@catb0t
catb0t / inconsist
Created September 12, 2016 14:05
inconsist
canonical-data.json needs standardisation
Hello,
I maintain the Factor track,
and I'd like to automate generation of unit tests
for exercises in my language, and looking at
`exercises/leap/canonical-data.json` it would seem
to be quite simple. However, many of the
`canonical-data.json`s don't have a standard set
@catb0t
catb0t / insults.h
Created June 15, 2016 17:58
Iterations, etc practice in C
const char* insults[] = {
// Homebrew insults (curtesy [sic] of Nick James)
"I used to want you dead... but now I just want you gone...",
"Do you want to join the Skyrim Guard? Okay... Have you ever taken an arrow to the knee? No? Go away.",
// Misc insults hand-picked from Linux culture
"Oh... er, no, please... you really shouldn't do that...",
"// Just trying to create an array of integers for reference " \
"because I keep forgetting how integers look like",
! Copyright (C) 2016 Your name.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs byte-arrays calendar combinators
continuations formatting hashtables html.parser
html.parser.analyzer http.client io io.directories
io.encodings.binary io.files io.pathnames kernel locals make
math math.parser multiline namespaces peg.javascript
peg.javascript.ast regexp sequences splitting strings summary
threads ;
IN: monstercat