Skip to content

Instantly share code, notes, and snippets.

View freeman42x's full-sized avatar
🎯
Twitch streaming work on open source projects, looking for contributors

freeman42x freeman42x

🎯
Twitch streaming work on open source projects, looking for contributors
View GitHub Profile
@countoren
countoren / shell.nix
Created April 17, 2020 21:11
shell nix example with vscodeEnv
with import <nixpkgs>{};
let vscodeEnv = (callPackage (fetchFromGitHub {
owner="countoren";
repo="VSCodeEnv";
rev="3992e93fa762b3982c04362da0cd74942350000e";
sha256="050abfl9tikwn51nb4zva3gxxawp1xynwkf1qw4s7jqgdaz06qx27";
}) {}).vscodeEnv;
in
mkShell {
buildInputs = [
@rexim
rexim / Help.org
Last active February 21, 2022 23:04
HyperNerd Commands
@extremecoders-re
extremecoders-re / vmware-no-vmem.md
Last active April 6, 2024 08:09
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

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.

@gustavomdsantos
gustavomdsantos / AutoHotKey script - Always-on-top.ahk
Last active September 30, 2024 03:32
AutoHotKey script that make any window Always-on-Top on Windows.
; 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)
}

Code of Conduct

Communication

Times
  • All times will be communicated in a way that is unambiguous. This communication may be a local time, with a UTC offset specified.

For example:

@hunterbridges
hunterbridges / twitch_irc.md
Last active October 5, 2024 18:09
How to connect to Twitch with an IRC client (As of Oct 2015)

HOWTO

Connect to Twitch.tv chat with an IRC client

  1. Visit this website and get an OAuth Token for your Twitch account.
  2. 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";
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace caNewtonsoftJson
{
class Person
{
public string Name { get; set; }
public int Age { get; set; }

Understanding this in JavaScript

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)
@dmjio
dmjio / Stats.hs
Last active November 7, 2020 21:14
Mean, Standard Deviation, Variance in Haskell
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)