start new:
tmux
start new with session name:
tmux new -s myname
package main | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"os" | |
"regexp" | |
"strings" |
This is a quick guide to Kotlin programming language. The previous part of this guide is here
#Object Oriented
fun main(args : Array<String>) {
class local (val x : Int)
val y = local(10)
println("${y.x}")
package de.zh32.slp; | |
import com.google.gson.Gson; | |
import java.io.ByteArrayOutputStream; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; |
HAI 1.3 | |
CAN HAS SOCKS? | |
I HAS A local | |
local R I IZ SOCKS'Z BIND YR "ANY" AN YR 12345 MKAY | |
BTW get an IP address | |
I HAS A addr ITZ I IZ SOCKS'Z RESOLV YR "google.com" MKAY | |
BTW connect to a remote port |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
from bottle import route, run | |
import subprocess, socket, os, glob | |
base_path = '/home/minecraft/' | |
def get_pipe(command): | |
return subprocess.Popen(command.split(), stdout=subprocess.PIPE).stdout | |
def validate_name(name): | |
return name and name.isalnum() and ' ' not in name |
There seems to be a lot of confusion regarding what exactly is required for a lib to be included in Discord API (i.e. get a channel, get listed in #info, and all the other good stuff). I've written all of the guidelines down as they were usually handled in the past and how they should be handled in the future, in my opinion. All of these are just guidelines - if you have a good enough reason to not meet a particular requirement, that's fine.
//Created by Justis Root. Released into the public domain. | |
//https://gist.github.com/justisr | |
// | |
//Source is licensed for any use, provided that this copyright notice is retained. | |
//Modifications not expressly accepted by the author should be noted in the license of any forks. | |
//No warranty for any purpose whatsoever is implied or expressed, | |
//and the author shall not be held liable for any losses, direct or indirect as a result of using this software. | |
import java.io.File; |