Skip to content

Instantly share code, notes, and snippets.

Oliver Boudet olvrb

  • ~
Block or report user

Report or block olvrb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am olvrb on github.
  • I am olvrb (https://keybase.io/olvrb) on keybase.
  • I have a public key ASCvzJ7fVQy2oltOj5WrqJ5kCebFL0xb-vVNXOubaZ356wo

To claim this, I am signing this object:

@olvrb
olvrb / Localizable.strings
Last active Apr 25, 2019 — forked from iAdam1n/Localizable.strings
TermHere 1.3 New Strings
View Localizable.strings
<!-- Title of the Help window. -->
<key>HELP</key>
<string>Hjälp</string>
<!-- Done button label. -->
<key>DONE</key>
<string>Klar</string>
View SimpleList.cs
using System.Collections.Generic;
using System.Linq;
namespace FallProject.Utilities {
public static class Base64Utilities {
// Credits to https://stackoverflow.com/a/11743162/8611114.
// Extension method, just in case I need it later.
public static string Base64Encode(this string plainText) {
@olvrb
olvrb / main.py
Created Nov 20, 2018
don't hold my beer
View main.py
sha256 = lambda data: [([
[
[
[([w.append((gamma1(w[-2]) + w[-7] + gamma0(w[-15]) + w[-16]) & 0xffffffff) for _ in range(48)] and False) or[([
[
[
[g.__setitem__(j, values[j]) for j in range(8)]
for values in [
[(t1 + t2) & 0xffffffff, g[0], g[1], g[2], (g[3] + t1) & 0xffffffff, g[4], g[5], g[6]]
]
@olvrb
olvrb / index.js
Created Oct 25, 2018
get deriv of function
View index.js
const readline = require("readline-sync");
let equation = readline.question("equation > ");
equation = equation.split(/ /g);
let eq = "";
for (const term of equation) {
if (term.match(/(\+|-)/g)) {
eq += term;
continue;
}
View sample_reverse_proxy_nginx_config.conf
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_yourdomain {
server 127.0.0.1:2368;
keepalive 8;
}
server {
listen 0.0.0.0:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
View c# aliases
object: System.Object
string: System.String
bool: System.Boolean
byte: System.Byte
sbyte: System.SByte
short: System.Int16
ushort: System.UInt16
int: System.Int32
uint: System.UInt32
long: System.Int64
@olvrb
olvrb / cloudSettings
Created Aug 12, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-08-12T15:03:11.656Z","extensionVersion":"v3.0.0"}
View åoijasodijasd.js
nestedloo:for(y=1; y<200;y++){const fall1=Math.floor(456*x+(y>100?2.4*y:0));const fall2=Math.floor(345*x+1.5*y);if(fall1 < fall2){console.log(`${x}, ${y}`); break nestedloo;}console.log(`fall 1: 456*${x} + ${(y>100?2.4*y:0)} = ${fall1}`);console.log(`fall 2: ${fall2}`)}
View idefk.js
firstloop:for (x=1;x<10;x++) { nestedloo:for (y=1; y<200;y++) {const fall1= 456*x + (y > 100 ? 2.4*y : 0 ); const fall2 = 345*x+1.5*y; if (fall1 < fall2){break firstloop;} console.log(`fall 1: 456*${x} + ${(y > 100 ? 2.4*y : 0 )} = ${fall1}`); console.log(`fall 2: ${fall2}`)} }
You can’t perform that action at this time.