This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inspired by https://github.com/ocamllabs/ocaml-effects-tutorial | |
// | |
// Goroutines can be implemented using effects, and, as it turns | |
// out, effects can be implemented using Goroutines. | |
// It does require an explicit `context.Context` argument, though. | |
// | |
// Note: The following code is a quick and dirty experiment. It | |
// is not efficient, and probably leaks memory. | |
package main |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name No closed captions | |
// @namespace Violentmonkey Scripts | |
// @match https://www.netflix.com/watch/* | |
// @grant none | |
// ==/UserScript== | |
let lastContainer = null | |
function removeClosedCaptions() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run the given command in a Nix-aware environment installed in | |
# '~/opt/nix', assuming PRoot is available in '~/opt/bin/proot-x86_64'. | |
# | |
# If no arguments are given, 'zsh' is executed. | |
# | |
# Note: | |
# The full path to 'nix.sh' is given instead of '~/.nix-profile/etc/profile.d/nix.sh', | |
# because in some cases, the symlink may not be property set up when running the script. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; AutoHotKey script that sends the right symbols to Windows. | |
; Useful, since I can reprogram most of my keys on my keyboard, but not special characters. | |
#NoEnv | |
SendMode Input | |
$1::Send {1} | |
$2::Send {2} | |
$3::Send {3} | |
$4::Send {4} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Creates a .zip file matching the submission format required by EPITA. | |
.EXAMPLE | |
Make-Submission -Author gregoire.geis -Nth 0 -Items ./TP0 -Exclude bin,obj -ReadMe "First submission!" | |
Make-Submission -Author gregoire.geis -Nth 0 -Items tp0.ml | |
#> | |
function Make-Submission ( | |
[Parameter(Mandatory=$true)] [string] $Author, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load all init scripts | |
Get-ChildItem $Home\OneDrive\Code\PowerShellInit\* -Include *.ps1 -Recurse | % { . $_ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Gets the status of an Ngrok user. | |
.EXAMPLE | |
Get-NgrokStatus -Credential (Get-Credential) | |
#> | |
function Get-NgrokStatus([Parameter(Mandatory=$true)] [PSCredential] $Credential) { | |
# Find CSRF Token | |
$Req = Invoke-WebRequest 'https://dashboard.ngrok.com/user/login' -UseBasicParsing -SessionVariable Session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Facebook watcher | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Makes sure you don't spend too much time on Facebook | |
// @author You | |
// @require http://coffeescript.org/v1/browser-compiler/coffee-script.js | |
// @match https://www.facebook.com/* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Threading.Tasks; | |
namespace Tests | |
{ | |
/// <summary> |