Skip to content

Instantly share code, notes, and snippets.

func (tdm *Tdm) addDm(dm anaconda.DirectMessage) error {
chat, ok := tdm.chats[dm.SenderId]
if !ok {
chat.username = dm.SenderScreenName
chat.userID = dm.SenderId
}
if dm.SenderId == tdm.user.Id {
chat.sentDms = append(chat.sentDms, dm)
} else {
@jacobmischka
jacobmischka / Makefile
Created August 6, 2017 00:47
fuckfile
build: EwsToFullcalendar.cs deps
cd bin; mcs -r:Microsoft.Exchange.WebServices.dll ../EwsToFullcalendar.cs
lib:
mkdir lib
bin:
mkdir bin
{
"match": "\\s*+(\|>)",
"captures": {
"1": { "name": "keyword.operator.pipe.js" }
}
}

An essential part of your application, the Reason Statement is used to determine the appropriateness of your educational and professional goals and serves as an example of your ability to express yourself in writing.

In the statement:

  • Explain your reasons for pursuing graduate study;
  • Describe specific interests and your background in the field;
  • List any relevant skills or training you have acquired;
  • List relevant academic awards or honors you have received.

<p>
{{ text }}
</p>
<script>
export default {
data() {
return {
text: 'Hello, world!'
};
<div class="node">
<span class="icon">
icon
</span>
<span class="name">
<span>{{ basename }}</span>
<span class="extension">{{ extension }}</span>
</span>
<span class="size">
@jacobmischka
jacobmischka / unmute.sh
Created November 6, 2017 16:11
Snippet to unmute my sound device in ALSA
# No idea why I had to do this, but I don't want to forget in case I have to again
amixer -c 1 sset 'Line Out' unmute

Input string: 1,2,3

Lengths after parsing and adding 5 elements: [ 49, 44, 50, 44, 51, 17, 31, 73, 47, 23 ]

List after 64 loops:

[
  5, 11, 95, 62, 101, 8, 254, 63, 51, 197, 155, 31, 164, 190, 147, 6, 171, 98, 19, 20, 75, 159, 194, 207, 249, 91, 225, 78, 145, 230, 118, 224, 83, 87, 58, 244, 124, 241, 131, 201, 7, 114, 240, 204, 66, 47, 50, 252, 203, 213, 137, 127, 44, 165, 104, 234, 18, 25, 116, 173, 121, 209, 153, 138, 239, 13, 55, 157, 70, 189, 89, 196, 136, 243, 237, 210, 250, 246, 208, 59, 211, 215, 80, 40, 72, 135, 32, 54, 61, 21, 16, 238, 38, 77, 34, 184, 28, 160, 15, 181, 228, 103, 81, 229, 96, 37, 12, 217, 221, 36, 65, 235, 123, 109, 175, 187, 199, 198, 57, 113, 64, 0, 185, 1, 166, 152, 233, 253, 119, 67, 43, 143, 86, 191, 227, 149, 126, 105, 76, 146, 242, 120, 169, 156, 216, 162, 24, 219, 193, 129, 94, 48, 49, 10, 35, 82, 79, 174, 41, 22, 202, 108, 30, 115, 150, 154, 17, 88, 60, 26, 205, 148, 179, 128, 245, 45, 251, 142, 74, 102, 206, 182, 100, 3, 106, 56, 23, 99, 90, 222, 2, 172, 73, 158
int skip = 0;
int position = 0;
int length;
for (int i = 0; i < NUM_ROUNDS; i++) {
for (iter = lengths.begin(); iter != lengths.end(); iter++) {
length = *iter;
reverse(list, LIST_SIZE, position, position + length - 1);
<div>
<p>
{{ user.full_name }}
</p>
<div>
<ol>
<li v-for="pairing of overlap.pairings">
<div class="row">
<div class="col-sm-6">
<span>