This file contains 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
ips = Array.new | |
ips.push '192.168.13.201' | |
ips.push '192.168.13.202' | |
ips.push '192.168.13.206' | |
ips.push '192.168.13.205' | |
ips.push '192.168.13.211' | |
ips.push '192.168.13.209' | |
ips.push '192.168.13.210' | |
ips.push '192.168.13.217' | |
ips.push '192.168.13.216' |
This file contains 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
package main | |
import "fmt" | |
import "os" | |
func main() { | |
file, _ := os.Open("list.txt", os.O_RDWR, 0644) | |
var b [40000] byte | |
file.Read(&b) | |
fmt.Print(len(&b)) |
This file contains 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
package main; | |
import "fmt" | |
func Each(arr []int, iterator func(int)) { | |
for i := range arr { | |
iterator(i) | |
} | |
} |
This file contains 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> | |
<title></title> | |
<style type="text/css"> | |
<!-- | |
.Style1 { | |
font-family: "Courier New", Courier, mono; | |
font-size: small; | |
} | |
--> |
This file contains 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
(ns count-change) | |
(defn cart [colls] | |
(if (empty? colls) | |
'(()) | |
(for [x (first colls) | |
more (cart (rest colls))] | |
(cons x more)))) | |
(defn noseq? [x] |
This file contains 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
(ns nim) | |
(defn nim-sum [state] | |
(apply bit-xor state)) | |
(defn next-move [[i k] state] | |
(cond | |
(<= (inc k) (nth state i)) [i (inc k)] | |
(and (< (inc i) (count state)) (not= (nth state (inc i)) 0)) [(inc i) 1] | |
(>= (inc i) (dec (count state))) nil |
This file contains 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
;; Your file has been converted to the new flat format. | |
;; Conversion does not preserve comments or indentation. | |
;; File is backed up at C:\Users\lei203\AppData\Local\LightTable\User\user.behaviors.bak | |
[ | |
[:app :lt.objs.style/set-skin "dark"] | |
[:app :lt.objs.sidebar.workspace/workspace.open-on-start] | |
[:app :lt.plugins.vim/map-keys {",L" ":ltexec paredit.shrink.right", | |
",l" ":ltexec paredit.grow.right", | |
"gT" ":ltexec tabs.prev", | |
"gt" ":ltexec tabs.next", |
NewerOlder