View Program.cs
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
using System; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using NATS.Client; | |
namespace worker | |
{ | |
class Program | |
{ |
View hello.package.json
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
"contributes": { | |
"commands": [ | |
{ | |
"command": "extension.sayHello", | |
"title": "Hello World" | |
} | |
] | |
}, |
View main.go
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 ( | |
"bytes" | |
"flag" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/jpeg" | |
"log" |
View cache.go
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 ( | |
"bytes" | |
"flag" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/jpeg" | |
"log" |
View chessboard.go
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 ( | |
"image" | |
"image/color" | |
"image/jpeg" | |
"log" | |
"os" | |
) |
View driftme.ps1
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
param([String]$server="yourservername", | |
[String]$sqlServerVersion="sql2014", | |
[String]$dbToDrift="yourdbtodrift", | |
[String]$tableToDrift="yourtabletodrift") | |
$previousLocation = Get-Location | |
Import-Module "sqlps" -DisableNameChecking | |
SQLSERVER: | |
$directory = "\sql\{0}\{1}\databases\{2}" -f $server, $sqlServerVersion, $dbToDrift |
View main.go
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 ( | |
"bytes" | |
"encoding/base64" | |
"flag" | |
"html/template" | |
"image" | |
"image/color" | |
"image/draw" |
View barchart.html
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Bar Chart with Negative Values</title> | |
<style> | |
.bar.positive { | |
fill: #B9E397; | |
} | |
.bar.negative { |
View pieChartData.csv
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
sentiment | population | |
---|---|---|
positive | 50 | |
negative | 20 | |
neutral | 30 |
View randInInterval.go
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
// computes a random number in the specified interval centered in zero. | |
func randInInterval(min int, max int) float64 { | |
r := rand.New(rand.NewSource(time.Now().UnixNano())) | |
size := float64(max - min) | |
return r.Float64()*size + float64(min) | |
} |
NewerOlder