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
// Implements a simple phase delay from different n-Antenna elements
package pathloss
import (
"fmt"
"log"
"math"
"github.com/wiless/cellular/deployment"
"github.com/wiless/vlib"
@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 / 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 / knowInterface.go
Last active August 29, 2015 14:03
Simple Interface
package main
import (
"fmt"
"reflect"
)
type Car struct
{
weight float32
}
@wiless
wiless / circuit.go
Last active August 29, 2015 14:04
Sample code for executing link
package main
import (
"bytes"
"encoding/binary"
"flag"
"fmt"
"math/rand"
"net"
"strconv"
@wiless
wiless / qpskber.go
Created November 26, 2014 16:56
QPSK BER simulation in Golang
package main
import (
"fmt"
"math/rand"
"math"
"io/ioutil"
"time"
"flag"
"runtime"
@wiless
wiless / singlecell.go
Created November 27, 2014 19:16
Sample code to calculate rssi in a sample deployment
package main
import (
"fmt"
"github.com/grd/statistics"
"log"
"math/cmplx"
"math/rand"
"time"
"wiless/cellular/antenna"
@wiless
wiless / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@wiless
wiless / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<link rel="import" href="../core-pages/core-pages.html">
@wiless
wiless / sumall.go
Created March 15, 2015 13:51
Example walk through interface and reflect
package main
import (
"reflect"
"strconv"
"fmt"
)
func sum(arguments ...interface{}) {