As configured in my dotfiles.
start new:
tmux
start new with session name:
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"strconv" | |
) | |
func main() { |
class Main { | |
public static void main(String[] args) { | |
System.out.println("Hello world!"); | |
} | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
// simple program to use json and download images from a subreddit | |
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"image" | |
"image/gif" |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
var t int |
// A concurrent CracklePop Program | |
package main | |
import ( | |
"fmt" | |
) | |
// Create a goroutine that sends infinite empty string on a channel | |
// and returns the channel |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
) | |
// Define a type to implement a bktree node |
# function to get the alphabetical value | |
def value(char): | |
return ord(char) - 64 | |
# open file and sort the strings | |
file = open('names.txt','r') | |
names = file.read().split(',') | |
names = sorted(names) | |
total = 0 |
def fizzbuzz(n): | |
# your code here | |
return ['FizzBuzz' if i%15 == 0 else "Fizz" if i%3==0 else "Buzz" if i%5==0 else i for i in xrange(1,n+1)] |