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.
| 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')) { |
| 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({ |
| const ws = new WebSocket('ws://localhost:8080') | |
| ws.onopen = () => { | |
| console.log('Connected to the signaling server') | |
| } | |
| ws.onerror = err => { | |
| console.error(err) | |
| } |
| [build] | |
| publish = "public" | |
| command = "hugo" | |
| [context.production.environment] | |
| HUGO_VERSION = "0.43" | |
| HUGO_ENV = "production" | |
| HUGO_ENABLEGITINFO = "true" | |
| [context.split1] |
| function (user, context, callback) { | |
| if (context.clientName !== 'YOURAPPNAME') { | |
| return callback(null, user, context); | |
| } | |
| var whitelist = ['[email protected]', '[email protected]']; //authorized emails | |
| var userHasAccess = whitelist.some( | |
| function (email) { | |
| return user.email.toLowerCase() === email; | |
| }); |
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.
Run go install and
gogitlocalstats -add /path/to/folder will scan that folder and its subdirectories for repositories to scangogitlocalstats -email [email protected] will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default in main.go, so you can run gogitlocalstats without parameters.Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.
| import "sort" | |
| ages := map[string]int{ | |
| "a": 1, | |
| "c": 3, | |
| "d": 4, | |
| "b": 2, | |
| } | |
| names := make([]string, 0, len(ages)) |
| 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 |