Skip to content

Instantly share code, notes, and snippets.

View tye-shutty's full-sized avatar

Tye Shutty tye-shutty

View GitHub Profile
shift-F6
#replace symbol across files
CMD-alt-L
#reformat code
alt-up and alt-down
#select within parenthesis
wrap selection in "{([
#press command-<regular sequence to make that char>
alt-ctl-c
#show recent changes to project

Keybase proof

I hereby claim:

  • I am tye-shutty on github.
  • I am tshutty (https://keybase.io/tshutty) on keybase.
  • I have a public key ASACCm9-oCMtOjfNe0Ldq-OtQH3wUe5VzAwcfI2cBNZjHAo

To claim this, I am signing this object:

curl -X GET -H "Content-Type: application/json" https:url/list-items.csv --user username:password
#GET is default so -X GET not required
immutant.web.internal.ring.LazyMap
#the type of the request sent by postman
io.undertow.io.UndertowInputStream
#the type of the :body val in the request
catch (IOException|FileNotFoundException ex) {
logger.log(ex);
throw ex;
}
//catching multiple exceptions
private volatile int count = 0;
//makes all vars in context write to main memory
///java.util.UUID makes UUIDs
<!--Web Services Description Language (WSDL) -->
<!--file 1-->
<a:element-b xmlns:a="URI-c">
<a:element-d>
<a:element-e>f</a:element-e>
...
</a:element-d>
<a:element-d>
<a:element-e>g</a:element-e>
...
select function-a(h.b), h.c, i.e from a h inner join d i on h.f = i.g
--must use alias if given
---HOUR() function. MySQL hour() returns the HOUR of a time.
select * from agent_session where tenant_id='88624040-053f-4450-a2c6-f1e48db682ea' order by start_timestamp desc;
git stash
# saves and removes staged changes
git stash list
#shows stashes
git stash apply <optional stash id, eg stash@{2}>
git stash pop
#applies most recent stash and deletes it
git stash drop <optional stash id>
git tag –l
[^] ;Not these chars
[][] ;Sequence of options
[]{n,m} ;n-m repetition of options
. ;Any char
[]+ ;At least one of
@tye-shutty
tye-shutty / examples.clj
Last active January 2, 2022 00:48
Clojure
;;these code snipits and advice are not mine, I just copied these from various websites.
(Character/isAlphabetic <int>)
;True if char index is a letter
(set! *warn-on-reflection* true)
;Put at beginning of file to check for slow code
;;defn-
(def ^:private foo 1)