Skip to content

Instantly share code, notes, and snippets.

View TheThirdOne's full-sized avatar

Benjamin Landers TheThirdOne

  • Los Angeles, California
View GitHub Profile
order = enum {greater, equal, lesser}
comparator<a> = (a,a)order
@assert pure, terminates
fn sorted<a>(pair (List<a>,comparator<a>))bool {
(l, cmp) = pair
if l.length() <= 1 {
return true
}
return cmp(l[0],l[1]) != order.greater & sorted(l.tail())
  • horror / detective / socialization game
    • Main idea: Monsters can kill and replace people, you witness this occur once and have to use social interactions to deduce how many people are still human
    • Setting:
      • Small town: everyone knows everyone
    • Detials of monsters:
      • Very smart, it should be assumed that they know about everything you can do and will try to kill you as fast as possible as a result of you knowing that they are monsters. Howver, they are also patiant, they won't risk exposing themselves to get you.
      • Requirements to successfully kill:
        • Reasonable privacy, they wont be able to kill you safely if other people are watching
        • If you suspect them, they won't be able to kill you 1 on 1 easily (they aren't superhuman); you will be able to scream and call for help. In complete isolation you will die even if you suspect
  • If you don't suspect them, they can kill you instantly.
link = document.createElement('a');
link.download = 'name.txt';
link.href = 'data:text/plain;base64,'+btoa('exmaple text\n here')
link.click()
app.get('/test', function(req, res) {
try{
fields.filter(function(name) {
if (thiz.restricted.indexOf(name) !== -1) {
throw "401";
}
query.where(name).equals(val);
});
}catch(e){
res.error(401, 'Field is restricted.');