[ Launch: An inlet to Tributary ] 4547472 by zeffii[ Launch: An inlet to Tributary ] 4545400 by enjalot
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 csv | |
text = csv.reader(open('evoreg.csv', 'rb'), delimiter=';') | |
for row in text: | |
print '='*80 | |
IDList = [ ['Name', row[1]], | |
['Boards', row[2]], | |
['Age', row[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
#!/usr/bin/perl -w | |
# Reads data from a Current Cost device via serial port. | |
use strict; | |
use Device::SerialPort qw( :PARAM :STAT 0.07 ); | |
my $PORT = "/dev/ttyUSB0"; | |
my $ob = Device::SerialPort->new($PORT); |
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 serial | |
import re | |
import os | |
ser = serial.Serial('/dev/ttyUSB0', 57600) | |
data = ser.readline().decode("utf-8") | |
matches = re.findall('<tmpr>(.*?)</tmpr>.+?<watts>(.*?)</watts>', data) | |
temp, watts = matches[0] |
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
bl_info = { | |
"name": "Text Editor Gist Upload", | |
"author": "Dealga McArdle", | |
"version": (0, 1, 0), | |
"blender": (2, 6, 4), | |
"location": "Text Editor - Upload Gist", | |
"description": "Uploads current blend text as anonymous gist and gives link", | |
"wiki_url": "", | |
"tracker_url": "", | |
"category": "Text Editor"} |
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
def escape_html(s): | |
for i in ('&', '&'), ('<', '<'), ('"', '"'), ('>', '>'): | |
if i[0] in s: | |
s = s.replace(i[0],i[1]) | |
return s |
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
from xml.sax.saxutils import escape | |
def escape_html(s): | |
for i in '&','<','"','>': | |
if i in s: | |
s = s.replace(i, escape(i)) | |
return s |
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 bpy | |
from random import random, randrange | |
set_layer = lambda y: tuple(i == y for i in range(0, 20)) | |
co = (0, 0, 0) | |
add_metaball = bpy.ops.object.metaball_add | |
add_metaball(type='BALL', enter_editmode=True, location=co, layers=set_layer(0)) | |
obj = bpy.context.active_object.data |
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
#include <iostream> | |
using namespace std; | |
int main(){ | |
int guess = 50; | |
int guess_attempts = 0; | |
int answer ; | |
int helper = guess / 2; |
[ Launch: Tributary Users ] 4550131 by zeffii[ Launch: An inlet to Tributary ] 4545400 by enjalot
OlderNewer