Skip to content

Instantly share code, notes, and snippets.

View JTBrinkmann's full-sized avatar

Jan-T. Brinkmann JTBrinkmann

  • Stralsund, Germany
View GitHub Profile
@JTBrinkmann
JTBrinkmann / get-rcs.sh
Last active September 21, 2015 19:32 — forked from goto-bus-stop/get-rcs.sh
RCS deobf
#!/bin/sh
mkdir rcs/$(date '+%m%d')
curl https://code.radiant.dj/rs.min.js -o rcs/$(date '+%m%d')/rs.min.js
node unobfuscate rcs/$(date '+%m%d')/rs.min.js
@JTBrinkmann
JTBrinkmann / aux.time_formatting.ls
Created January 21, 2016 22:39
time and date formatting functions written in LiveScript
aux =
# formatting
timezoneOffset: new Date().getTimezoneOffset!
getTime: (t = Date.now!) !->
return new Date(t - timezoneOffset *60_000min_to_ms).toISOString! .replace(/.+?T|\..+/g, '')
getDateTime: (t = Date.now!) !->
return new Date(t - timezoneOffset *60_000min_to_ms).toISOString! .replace(/T|\..+/g, ' ')
getDate: (t = Date.now!) !->
return new Date(t - timezoneOffset *60_000min_to_ms).toISOString! .replace(/T.+/g, '')
getISOTime: (t = new Date)!->

I later went up to my room, feeling all guilty, yet unsure what just happened. I did some research, only to find out that even though I learned baiser = to kiss, it apparently isn't used as such anymore, and in modern French it's baiser = to fuck.

"French girls greet you by fucking you"… yeah 10/10 Brinkie!

Aced it.

101 How to make a good first impression.

#truestory

gif of a French greeting

so after 1 or 2 years of French class, I participated in a student exchange project for 2 months, meaning my French exchange partner lived with my family for 2 months, and then I lived with his for 2.

In France, he went to a boarding school, so we stayed at school during the week and got back to his family during the weekend. After the first week of school, we went back to his parents' house and his mother asked me "what did you like most about French school?"

A little ashamed, yet proudly I answered, that the best thing is how comfortable social situations are, how close people get casually, especially, how when greeting girls you do "accolades" (those kisses where your cheeks touch/get close and you kiss the air). So I answered something like "J'aime comme pour faire la salutation, on baise les filles" ![screenshot of Google Translator showing it translates to "I like how to make greeting, they kiss girls"](https://i.imgur.com/kaM6L2h.pn

import random
import copy
#import time
#Sample Game Board
gameBoard = [
["#","#","#","#","#","#","#","#","#","#","#","#"],
["#"," "," "," "," "," "," "," ","#"," "," ","#"],
["#"," "," "," "," "," "," "," ","#"," "," ","#"],
["#"," "," "," "," "," "," "," ","#"," "," ","#"],
[Default Text]
FileNameExtensions=txt; text; wtx; log; asc; doc
Default Style=font:Helvetica; size:11; fore:#DDDDDD; back:#222222
Margins and Line Numbers=size:-3; fore:#AAAAAA; back:#444444
Matching Braces=size:+1; bold; fore:#FF0000
Matching Braces Error=size:+1; bold; fore:#000080
Control Characters (Font)=size:-1
Indentation Guide (Color)=fore:#A0A0A0
Selected Text (Colors)=back:#144AD8; eolfilled; alpha:95
Whitespace (Colors, Size 0-5)=fore:#FF4000
@JTBrinkmann
JTBrinkmann / p0ne.auxiliaries.time.js
Last active May 7, 2016 17:55
time formatting auxiliaries taken from plug_p0ne
// from p0ne.auxiliaries.ls
var aux;
aux = {
pad: function(num){
if (0 <= num && num < 10) {
return "0" + num;
} else {
return num + "";
}
},
@JTBrinkmann
JTBrinkmann / playlist-importer.snippet.js
Created June 4, 2016 11:26
imports playlists from JSON exports into plug.dj (Dubtrack export compatible)
// enter your exported JSON here. With a large playlist, this can get pretty long.
// don't worry if your browser freezes for a moment when you paste it
// example:
// exportedJSON = {"time":1416,"status":"ok", ...}
exportedJSON = {}
// sanity check
if (!exportedJSON || !exportedJSON.data.length || !exportedJSON.data.length) {
throw new Error("the `exportedJSON` you passed in is invalid. Please read the top comment on this script or ask for help")
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>txt</string>
</array>
<!--<key>foldingStartMarker</key>
<string>^\s*(?:#.*?=>|([-%\:\.\w\=].*))\s$</string>
aux = {
pad: function(num, digits){
return 0 <= num && num < 10
? "0" + num
: num + ""
},
getChatTimestamp: function(is24h) {
d = new Date()