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
(cmpt379)thinkpad[/tmp/llvm_test] python test.py | |
; ModuleID = 'tut2' | |
define i32 @gcd(i32 %x, i32 %y) { | |
entry: | |
%tmp = icmp eq i32 %x, %y | |
br i1 %tmp, label %return, label %cond_false | |
return: ; preds = %entry | |
ret i32 %x |
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
video_input_plugin: | |
more_config_stuff: True | |
pip_plugin: | |
video_input_1: | |
config_stuff: true | |
video_input_2: | |
other_config_stuff: true |
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
1 >> 3 + 1 / -2 % 10 - 5 * 2 / 20 << 2 = BinaryExpr(Rightshift,Number(1),BinaryExpr(Plus,Number(3),BinaryExpr(Div,Number(1),UnaryExpr(Minus,BinaryExpr(Mod,Number(2),BinaryExpr(Minus,Number(10),BinaryExpr(Mult,Number(5),BinaryExpr(Div,Number(2),BinaryExpr(Leftshift,Number(20),Number(2)))))))))) | |
1 + 3 * 2 = BinaryExpr(Plus,Number(1),BinaryExpr(Mult,Number(3),Number(2))) | |
4 * 3 + 1 = BinaryExpr(Mult,Number(4),BinaryExpr(Plus,Number(3),Number(1))) | |
1 >> 3 + 1 = BinaryExpr(Rightshift,Number(1),BinaryExpr(Plus,Number(3),Number(1))) | |
1 >> 2 * 3 = BinaryExpr(Rightshift,Number(1),BinaryExpr(Mult,Number(2),Number(3))) | |
1 >> 2 << 3 = BinaryExpr(Rightshift,Number(1),BinaryExpr(Leftshift,Number(2),Number(3))) | |
2 - -3 = BinaryExpr(Minus,Number(2),UnaryExpr(Minus,Number(3))) | |
2 - 3 * -4 = BinaryExpr(Minus,Number(2),BinaryExpr(Mult,Number(3),UnaryExpr(Minus,Number(4)))) | |
-4 * 2 / 2 >> 3 = UnaryExpr(Minus,BinaryExpr(Mult,Number(4),BinaryExpr(Div,Number(2),BinaryExpr(Rightshift,Number(2),Number(3))))) |
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
src/setup.py:16:18: E251 unexpected spaces around keyword / parameter equals | |
src/setup.py:16:20: E251 unexpected spaces around keyword / parameter equals | |
src/setup.py:30:11: E123 closing bracket does not match indentation of opening bracket's line | |
src/setup.py:37:11: E123 closing bracket does not match indentation of opening bracket's line | |
src/setup.py:41:11: E123 closing bracket does not match indentation of opening bracket's line | |
src/setup.py:43:9: E121 continuation line indentation is not a multiple of four | |
src/setup.py:45:11: E121 continuation line indentation is not a multiple of four | |
src/setup.py:46:9: E121 continuation line indentation is not a multiple of four | |
src/freeseer/__init__.py:71:1: F401 'freeseer' imported but unused | |
src/freeseer/__init__.py:80:39: F821 undefined name 'settings' |
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 os | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'courses.settings') | |
from gpaconvert.models import GradeSource, DiscreteRule | |
GradeSource.objects.all().delete() | |
monsters_uni = GradeSource.objects.create(country='CA', | |
institution='Monsters University', |
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 os | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'courses.settings') | |
from gpaconvert.models import GradeSource, DiscreteRule, ContinuousRule | |
GradeSource.objects.all().delete() | |
DISCRETE_GRADES = ( | |
('Super Sully', 'A'), |
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 os | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'courses.settings') | |
from gpaconvert.models import GradeSource, DiscreteRule, ContinuousRule | |
GradeSource.objects.all().delete() | |
DISCRETE_GRADES = ( | |
('Super Sully', 'A'), |
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 os | |
from fabric.api import env, run, cd, put, sudo, hide | |
from fabric.contrib.project import rsync_project | |
base_path = os.path.dirname(__file__) | |
env.use_ssh_config = True | |
env.hosts = ['crunchbang'] |
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
#!/bin/bash | |
set -eu | |
if [ "$#" != 2 ]; then | |
echo >&2 "Usage: $0 <clone_url> <public_username> | |
A VERY SLOW mining implementation. This should give you an idea of | |
where to start, but it probably won't successfully mine you any | |
Gitcoins. |
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
(automagic)Michael-MBP[~/Projects/purplex][master *] echo '~(A + B) <=> (~A * ~B)' | python fuckme.py | |
+---+---+----+----+---------+----------+-----------+--------------------------+ | |
| A | B | ~A | ~B | (A + B) | ~(A + B) | (~A * ~B) | (~(A + B) <=> (~A * ~B)) | | |
+---+---+----+----+---------+----------+-----------+--------------------------+ | |
| T | T | F | F | T | F | F | T | | |
| T | F | F | T | T | F | F | T | | |
| F | T | T | F | T | F | F | T | | |
| F | F | T | T | F | T | T | T | | |
+---+---+----+----+---------+----------+-----------+--------------------------+ | |
(automagic)Michael-MBP[~/Projects/purplex][master *] echo 'A * ~A' | python fuckme.py |