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 sys | |
import io | |
SPACE = 32 | |
CHAR_X = 88 | |
NEWLINE = 10 | |
def print_tree(s): | |
lines = [] |
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 argparse | |
import requirements | |
import requests | |
import json | |
# Requires requirements-parser, requests. | |
class package: | |
def __init__(self, package): |
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 std.stdio; | |
class wibble | |
{ | |
const string name() | |
{ | |
return typeid(this).name; | |
} | |
} |
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 graphviz | |
class State: | |
def __init__(self, name, style="solid", color="black"): | |
self.name = name | |
self.style = style | |
self.color = color | |
self.rendered = False |
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
['auto', 'break', 'case', 'char', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto', 'if', 'int', 'long', 'register', 'return', 'short', 'signed', 'sizeof', 'static', 'struct', 'switch', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'while'] | |
auto | |
break | |
case | |
char | |
const | |
continue | |
default | |
do | |
double |
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
int main() | |
{ | |
char character = 'f'; //A single character | |
char anotherCharacter = 'b'; | |
static char staticCharacter = 'f'; /* A variable must be static to be evaluated | |
at compile time. */ | |
static char * cptr = &character; /* A pointer to a character. | |
One can modify the data, |
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 popplerqt4 | |
import sys | |
import PyQt4 | |
def main(): | |
doc = popplerqt4.Poppler.Document.load(sys.argv[1]) | |
total_annotations = 0 | |
for i in range(doc.numPages()): |
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
#include <CapacitiveSensor.h> | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define CAPSENSORPIN 3 | |
#define CAPCPIN 2 | |
#define THERMRESISTORVAL 10000 |
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
#Tests if source files listed are newer than the build | |
set currentTime 0 | |
set rebuild false | |
if test -e (pwd)"/"srcList.fish; and test -e (pwd)"/"buildList.fish | |
for file in (strings (pwd)"/"srcList.fish) |
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
Attempting to upload an Arduino sketch to an Arduino Nano fails with the error: 'Failed to find libtinfo.so' | |
libtinfo is a dependency of avrdude. libtinfo (as far as I can tell) is a depreciated lib who's functionality is now part of, and shipped with, ncurses. | |
A dependency of Arduino, avrdude, uses the no longer avalible libtinfo.so. | |
The Arch AUR Package 'libtinfo' symlinks the relevent files, but does not fix the issue. | |
#Fix | |
=========== | |
sudo pacman -S avrdude |
NewerOlder