Skip to content

Instantly share code, notes, and snippets.

View wiless's full-sized avatar
💭
I may be slow to respond.

wireless wiless

💭
I may be slow to respond.
View GitHub Profile
@wiless
wiless / reflectexample.go
Created June 29, 2014 09:04
Example of using reflect package in golang
package main
import (
"fmt"
"reflect"
)
func main() {
var nano car = car{5}
var donkey animal
@wiless
wiless / gocommunication.go
Created June 21, 2014 13:59
A sample code for tx-rx
package main
import (
"fmt"
// "time"
"math/rand"
)
var gcounter int
@wiless
wiless / proxyoff
Created April 30, 2014 08:55
Turn on Manual proxy
#!/bin/sh
sed 's/ProxyType=[0-9]/ProxyType=0/' ~/.kde/share/config/kioslaverc > kioslaverc.tmp
mv kioslaverc.tmp ~/.kde/share/config/kioslaverc -f
@wiless
wiless / testplot.cpp
Last active December 18, 2015 02:29
KPlotWidget test code
#include <QApplication>
#include <QDialog>
#include <QHBoxLayout>
#include <KPlotWidget>
#include <KPlotObject>
#include <KPlotAxis>
#include <KPlotPoint>
#include <itpp/itbase.h>
int main(int argn,char *argc[])