Skip to content

Instantly share code, notes, and snippets.

;AHK v1
#NoEnv
/*
MsgBox % BinaryToText(Temp1 := TextToBinary("Test")) . "`n" . Temp1
MsgBox % BinaryToNumber(Temp1 := NumberToBinary(1234)) . "`n" . Temp1
*/
TextToBinary(ByRef InputText)
{
@TLMcode
TLMcode / gist:6058346
Last active December 20, 2015 02:39 — forked from anonymous/gist:6058330
#InstallKeybdHook
#IfWinActive ahk_class ArenaNet_Dx_Window_Class
SetKeyDelay, 50, 50
MouseGetPos, xpos, ypos
SetTimer, KeyLog, 20
KeyLog:
If (A_priorkey != "RControl" && A_priorkey != "LButton")
d := A_PriorKey
#MaxThreadsPerHotKey 2
$Numpad0::
Switch := !Switch
While Switch
{
Send LShift w
Sleep 20
}
Return
KeyArray := ["e","r","t"]
PgUp::
i++
Hotkey % Key := KeyArray[ Mod( i-1 , KeyArray.MaxIndex() )+1 ], % "Slabel_" i, on
Return
PgDn::
#SingleInstance, Off
#NoEnv
SetBatchLines, -1
FilePath = C:\Windows\ShellNew\Template.ahk
DefaultName = %A_UserName%
DefaultDesc =
Indent := "`t"
Title = CodeQuickTester
@TLMcode
TLMcode / main.cs
Created October 1, 2015 04:33
Reading & Writing .wav file (C# + .net)
// Waveファイル 読み込みと書き込み
// 16bit形式のみ対応
// 読み込んだデータはList<short>に格納されます
using System;
using System.Collections.Generic;
using System.IO;
namespace ConsoleApplication1
{
class Program
@TLMcode
TLMcode / install.sh
Created May 26, 2018 18:06 — forked from ezimuel/install.sh
Verify and install composer from bash command line
#!/bin/bash
# Verify and install composer from https://getcomposer.org/installer
me=`basename "$0"`
if [[ $# -eq 0 ]] ; then
echo "Usage: $me <hash>"
echo 'where <hash> is the hash value of the installer to verify'
exit 1
fi
@TLMcode
TLMcode / install.sh
Created May 26, 2018 18:06 — forked from ezimuel/install.sh
Verify and install composer from bash command line
#!/bin/bash
# Verify and install composer from https://getcomposer.org/installer
me=`basename "$0"`
if [[ $# -eq 0 ]] ; then
echo "Usage: $me <hash>"
echo 'where <hash> is the hash value of the installer to verify'
exit 1
fi
@TLMcode
TLMcode / Github Webhook Tutorial.md
Created December 29, 2019 08:39 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings