This file contains hidden or 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
# docker build -t gui . | |
FROM debian | |
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y xserver-xorg xorg jwm | |
ENTRYPOINT ["startx"] |
This file contains hidden or 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
func findMedianSortedArrays(nums1 []int, nums2 []int) float64 { | |
i := 0 | |
j := 0 | |
combined := []int{} | |
for { | |
if i == len(nums1) || j == len(nums2) { | |
break | |
} |
This file contains hidden or 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
nettop -p com.docker.vpnk -x |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
.ribbon-list{ | |
list-style: none; | |
} | |
.ribbon-list > li { | |
float: left; | |
margin-right: 20px; |
This file contains hidden or 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
# A sample configuration for dhcpcd. | |
# See dhcpcd.conf(5) for details. | |
# Allow users of this group to interact with dhcpcd via the control socket. | |
#controlgroup wheel | |
# Inform the DHCP server of our hostname for DDNS. | |
hostname | |
# Use the hardware address of the interface for the Client ID. |
This file contains hidden or 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/sh | |
set -e | |
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
docker-compose --version |
This file contains hidden or 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
func quickSort(ar []int) []int{ | |
pivot := ar[rand.Intn(len(ar))] | |
less := []int{} | |
equal := []int{} | |
more := []int{} | |
for i := range ar { |
This file contains hidden or 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
class MyEntitiy { | |
private foo; | |
private bar; | |
function MyEntity(foo, bar){ | |
this.setFoo(foo); | |
this.setBar(bar); | |
} | |
function setFoo(foo){ |
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content="Hi! I'm David, Go developer, Javascript developer, and i love working on opensource projects."> | |
<meta name="author" content="David Rivera"> | |
<link rel="icon" href="http://www.gravatar.com/avatar/53c3e800211ecbf9e38c588f993c128e?s=200"> | |
<title>David Rivera</title> |
This file contains hidden or 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
import ( | |
"runtime" | |
"time" | |
) | |
... | |
go func() { | |
for { | |
var m runtime.MemStats |
NewerOlder