Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
package tempconv | |
const ( | |
AbsoluteZeroC float64 = -273.15 | |
FreezingC float64 = 0 | |
BoilingC float64 = 100 | |
) | |
func CToF(c float64) float64 { return float64(c*9/5 + 32) } |
package tempconv | |
import "fmt" | |
type Celsius float64 | |
type Fahrenheit float64 | |
const ( | |
AbsoluteZeroC Celsius = -273.15 | |
FreezingC Celsius = 0 |
function (user, context, callback) { | |
if (context.clientName !== 'YOURAPPNAME') { | |
return callback(null, user, context); | |
} | |
var whitelist = ['info@example.com', 'owner@example.org']; //authorized emails | |
var userHasAccess = whitelist.some( | |
function (email) { | |
return user.email.toLowerCase() === email; | |
}); |
document.addEventListener('DOMContentLoaded', event => { | |
const peer = new Peer('sender', { host: 'localhost', port: 9000, path: '/' }) | |
const conn = peer.connect('receiver') | |
document.querySelector('input').onchange = function(event) { | |
const file = event.target.files[0] | |
const blob = new Blob(event.target.files, { type: file.type }) | |
conn.send({ |
document.addEventListener('DOMContentLoaded', event => { | |
const peer = new Peer('receiver', { | |
host: 'localhost', | |
port: 9000, | |
path: '/' | |
}) | |
peer.on('connection', conn => { | |
conn.on('data', data => { | |
if (data.filetype.includes('image')) { |
[build] | |
publish = "public" | |
command = "hugo" | |
[context.production.environment] | |
HUGO_VERSION = "0.43" | |
HUGO_ENV = "production" | |
HUGO_ENABLEGITINFO = "true" | |
[context.split1] |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
const ws = new WebSocket('ws://localhost:8080') | |
ws.onopen = () => { | |
console.log('Connected to the signaling server') | |
} | |
ws.onerror = err => { | |
console.error(err) | |
} |
package main | |
import ( | |
"strings" | |
) | |
func main() { | |
strings.HasSuffix("foobar", "bar") // true | |
} |
import "sort" | |
ages := map[string]int{ | |
"a": 1, | |
"c": 3, | |
"d": 4, | |
"b": 2, | |
} | |
names := make([]string, 0, len(ages)) |