Skip to content

Instantly share code, notes, and snippets.

@9nut
9nut / designer.html
Last active May 5, 2016 17:46
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
package main
import (
"fmt"
"io"
"os"
"time"
)
func main() {
package main
import (
"fmt"
"os"
"time"
)
func main() {
rdsig := make(chan int)
package main
import (
"crypto/cipher"
"crypto/des"
"encoding/base64"
"io"
"os"
)
package main
import (
"crypto/cipher"
"crypto/des"
"encoding/base64"
"io"
"os"
)
@9nut
9nut / dht9psrv.py
Created July 15, 2015 19:28
9P Server for DHT22 sensor (uses py9p and Adafruit_DHT packages)
#!/usr/bin/env python
import time
import sys
import getopt
import os
import copy
import py9p
import getopt
import getpass
@9nut
9nut / oa2srv.go
Created November 1, 2014 07:46
Sample Go Web Server that handles OAuth2 authentication through Google.
package main
import (
"code.google.com/p/goauth2/oauth"
"crypto/tls"
"encoding/json"
"flag"
"io/ioutil"
"log"
"net/http"
@9nut
9nut / rawcopy
Created October 10, 2014 22:45
Copy the .wav samples to stdout; useful for copying raw I/Q data stored in a .wav file (e.g. sdr# capture)
package main
import (
"fmt"
"io"
"os"
"github.com/cryptix/wav"
)
@9nut
9nut / wstest.go
Last active February 26, 2025 17:31
wstest.go
package main
import (
"flag"
"net/http"
"io"
"time"
"golang.org/x/net/websocket"
"log"
)