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
from P4 import P4 | |
client = P4() | |
# set client.port, client.client, etc here | |
change = client.fetch_change() | |
change['Files'] = [] # this contains all the files in default otherwise | |
ret = client.save_change(change) # ['Change 1234 created.'] | |
new_cl = ret.split()[1] | |
# now you can do stuff like |
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
### Keybase proof | |
I hereby claim: | |
* I am positron on github. | |
* I am philipjagielski (https://keybase.io/philipjagielski) on keybase. | |
* I have a public key whose fingerprint is 214C 181D 648B CC9A 1D9B FECC C884 6E9E 68D4 EB63 | |
To claim this, I am signing this object: |
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
$ cat log.txt | |
Python 2.7.6 (default, Sep 9 2014, 15:04:36) | |
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> 'a' | |
>>> 'b' | |
>>> |
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
package com.keepithttps.hibernate.type; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
import java.util.Properties; |
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/Cellar/node/6.3.0/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'i' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData | |
7 silly install normalizeTree |
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
(defn N [[x y] distance] [x (+ y distance)]) | |
(defn E [[x y] distance] [(+ x distance) y]) | |
(defn S [[x y] distance] [x (- y distance)]) | |
(defn W [[x y] distance] [(- x distance) y]) | |
(def cardinal-directions [N E S W]) | |
(defn apply-turn [current-direction turn] | |
"Direction is represented by the int index into `cardinal-directions`" | |
(let [incremement (if (= turn \R) 1 3)] |
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
JAVA_TIMESTAMP_FILE = .java-build-timestamp | |
STYX_SUBSCRIBER_PROTO_SRC = proto/styx.proto | |
STYX_READER_PROTO_SRC = proto/styx-reader.proto | |
STYX_SUBSCRIBER_PROTO_JAVA_SRC = \ | |
java-src/gen/styx/subscriber/StyxReader.java \ | |
java-src/gen/styx/subscriber/FIBGrpc.java | |
STYX_READER_PROTO_JAVA_SRC = \ | |
java-src/gen/styx/reader/StyxReader.java \ | |
java-src/gen/styx/reader/FIBGrpc.java |