Name | Description | Location |
---|---|---|
addalias | Add command alias | Source↗ |
addcmd | Add custom command | Source↗ |
addperiodic | Add periodic command | Source↗ |
addquote | Add quote to quote database | Source↗ |
addtimer | Add Periodic Timer | Source↗ |
addvar | Add variable | Source↗ |
amitrusted | Check if you are a trusted user | [[https://github.com/tsoding/HyperNerd/blob/8c6db8e9494a6a1cc4ba7026eee482bd |
This file contains 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
with import <nixpkgs>{}; | |
let vscodeEnv = (callPackage (fetchFromGitHub { | |
owner="countoren"; | |
repo="VSCodeEnv"; | |
rev="3992e93fa762b3982c04362da0cd74942350000e"; | |
sha256="050abfl9tikwn51nb4zva3gxxawp1xynwkf1qw4s7jqgdaz06qx27"; | |
}) {}).vscodeEnv; | |
in | |
mkShell { | |
buildInputs = [ |
Prevent creation of vmmem files in VMware (Windows)
VMWare creates .vmem
files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.
Add the following lines to the .vmx
file to prevent creation of .vmem
files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.
This file contains 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
; Press Ctrl+Shift+Space to set any currently active window to be always on top. | |
; Press Ctrl+Shift+Space again set the window to no longer be always on top. | |
; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows | |
^+SPACE:: | |
WinGetTitle, activeWindow, A | |
if IsWindowAlwaysOnTop(activeWindow) { | |
notificationMessage := "The window """ . activeWindow . """ is now always on top." | |
notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1) | |
} |
- Visit this website and get an OAuth Token for your Twitch account.
- Add a server to your IRC client with this configuration, using your OAuth Token as the server password. Make sure it is not using SSL.
{
address = "irc.twitch.tv";
chatnet = "Twitch";
This file contains 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 Newtonsoft.Json.Linq; | |
namespace caNewtonsoftJson | |
{ | |
class Person | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } |
It's easy to trip up on the meaning of this
in JavaScript. The behavior is very different from other languages, which means we have to throw most preconceptions and intuition out the window.
The best way to think of this
in JS is as a hidden function argument which is passed in a slightly awkward way. Instead of the normal passing of arguments:
fn(arg1, arg2, arg3)
This file contains 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
module Main where | |
import Control.Applicative | |
{- Result = (Mean = 0.34, St. Dev = 0.115, Variance = 0.005) -} | |
main :: IO () | |
main = interact stats | |
where | |
length' = fromIntegral . length | |
stats d = show (avg, stdDev, variance) |