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 ( | |
"log" | |
"net" | |
"os" | |
"github.com/getlantern/netx" | |
) |
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
type Display interface { | |
DrawSomething() | |
} | |
type display struct {} | |
func (d *display) DrawSomething() { | |
... | |
} |
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
type Display struct {} | |
func (d *Display) DrawSomething() { | |
... | |
} | |
type Computer struct { | |
Display *Display | |
} |
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
# Uses data from the GFED4.1 dataset - https://daac.ornl.gov/VEGETATION/guides/fire_emissions_v4_R1.html | |
import csv | |
import h5py # pip install h5py | |
with open('/tmp/burn.csv', mode='w') as csvfile: | |
csvwriter = csv.writer(csvfile, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL) | |
csvwriter.writerow(["Year", "Area Burned"]) | |
for year in range(1997, 2016): | |
print("year %s" % year) |
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 ( | |
"context" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"os" |
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
// This program converts csv measurements from oratory1990 into a format | |
// suitable for importing into Room EQ Wizard, with SPL normalized to 90dB. | |
package main | |
import ( | |
"os" | |
"io" | |
"encoding/csv" | |
"fmt" | |
"strconv" |
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 ( | |
"net" | |
"sort" | |
"log" | |
"strconv" | |
) | |
func main() { |
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" | |
"net" | |
"net/http" | |
"strings" | |
"github.com/getlantern/golog" | |
) |
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
#!/bin/bash | |
# Set up parameters | |
in=`realpath "${1}"` | |
echo $in | |
indir="${in%/*}" | |
infile="${in##*/}" | |
outdir="${indir}_headphone" | |
tmpin="/tmp/in_${infile}.flac" | |
tmpout="/tmp/out_${infile}.flac" |
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
#!/bin/bash | |
# Set up parameters | |
in=`realpath "${1}"` | |
echo $in | |
indir="${in%/*}" | |
infile="${in##*/}" | |
outdir="${indir}_headphone" | |
mkdir -p "$outdir" | |
tmpin="/tmp/in_${infile}" |
NewerOlder