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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os/exec" | |
) |
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
// mailing helpers | |
type loginAuth struct { | |
username, password string | |
} | |
func LoginAuth(username, password string) smtp.Auth { | |
return &loginAuth{username, password} | |
} | |
func (a *loginAuth) Start(server *smtp.ServerInfo) (string, []byte, error) { |
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
package main | |
// simulateC.c comes from api.pshdl.org | |
// http://api.pshdl.org/api/v0.1/workspace/3978D82198FB1F6B | |
// in this case | |
// #include "simulateC.h" | |
import "C" | |
import ( |
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
ERROR 2013/08/04 14:01:28 build.go:79: # github.com/cryptix/goSimPlot/app/models | |
duplicate symbol _frame3de in: | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.cgo2.o | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.sim.o | |
duplicate symbol _de_tuhh_hbubert_noiseCancel_simpleFir_rst in: | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.cgo2.o | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.sim.o | |
duplicate symbol _Pred_de_tuhh_hbubert_noiseCancel_simpleFir_rst in: | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.cgo2.o | |
$WORK/github.com/cryptix/goSimPlot/app/models/_obj/SimpleFir.sim.o |
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
// simple 4 tap fir | |
// coeff's are power of two | |
package de.tuhh.hbubert.noiseCancel; | |
module simpleFir { | |
param uint Width = 8; | |
@clock in bit clk; | |
@reset in bit rst; |
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
var prod = $(".summary") | |
.text() | |
.split('\n') | |
.map(function(e) { return parseInt(e) }) | |
.filter(function(e) { return !isNaN(e) } ) | |
.slice(0,3); | |
window.prompt("curr production:",prod.join('\t')); | |
var res = ["metal", "crystal", "deuterium"].map(function(e) { | |
var str = $('#resources_' + e).text().replace('.',''); |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"github.com/hailiang/gosocks" | |
"io" | |
"net" | |
"os" | |
"runtime" |
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
package main | |
import ( | |
"code.google.com/p/go.net/websocket" | |
"fmt" | |
"html/template" | |
"io" | |
"log" | |
"net/http" | |
) |
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
signed=0; | |
while [ $signed -lt 50000 ]; | |
do sleep 5; | |
signed=$(curl "https://epetitionen.bundestag.de/index.php?action=petition;sa=details;petition=22697" 2>/dev/null \ | |
| grep pet_det_td_4 \ | |
| cut -d '"' -f3 \ | |
| cut -d ' ' -f1 \ | |
| tr -d '>' \ | |
) | |
left=$(echo "50000 - $signed" | bc) |