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
// doesn't crash with const int param | |
//IntProxy inc(const int) | |
IntProxy inc(int) | |
{ | |
000007F6A5DC3370 mov dword ptr [rsp+18h],r8d | |
000007F6A5DC3375 mov qword ptr [rsp+10h],rdx | |
000007F6A5DC337A mov qword ptr [rsp+8],rcx | |
000007F6A5DC337F push rdi | |
000007F6A5DC3380 sub rsp,40h | |
000007F6A5DC3384 mov rdi,rsp |
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
import System.IO | |
import Network | |
import Text.Printf | |
import Data.List | |
import System.Exit | |
-- commands | |
cmd_prefix = "!" | |
cmd_join = cmd_prefix ++ "join" | |
cmd_quit = cmd_prefix ++ "quit" |
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
set nocompatible | |
set gfn=Source_Code_Pro:h10:cANSI | |
execute pathogen#infect() | |
set smartindent | |
set autoindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set showcmd |
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
import System.IO | |
import Network | |
import Text.Printf | |
import Data.List | |
import System.Exit | |
-- commands | |
cmd_prefix = "!" | |
cmd_join = cmd_prefix ++ "join" | |
cmd_quit = cmd_prefix ++ "quit" |
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
package main | |
import ( | |
"bufio" | |
"errors" | |
"fmt" | |
"net" | |
) | |
const QUEUE_SIZE = 512 |
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
import Data.List | |
import Network | |
import System.IO | |
import System.Exit | |
import Control.Arrow | |
import Control.Monad.Reader | |
import Control.Exception -- *** for base-3 | |
-- import Control.OldException -- *** for base-4 | |
import Text.Printf | |
import Prelude hiding (catch) |
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
import System.IO | |
import Network | |
import Text.Printf | |
import Data.List | |
import System.Exit | |
channel = "#warsow.na" | |
nick = "derpbot" | |
server = "us.quakenet.org" | |
port = 6667 |
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
private static bool IsLastBusinessDayOfMonth(DateTime date, int day) | |
{ | |
if (day > DateTime.DaysInMonth(date.Year, date.Month)) | |
return false; | |
DayOfWeek dayOfWeek = new DateTime(date.Year, date.Month, day).DayOfWeek; | |
return dayOfWeek != DayOfWeek.Sunday && dayOfWeek != DayOfWeek.Saturday; | |
} |
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
var folder = @"D:\ffsrc\ff-code-2013\mp\src\thirdparty\luabind"; | |
foreach (var file in Directory.EnumerateFiles(folder, "*.hpp")) | |
Console.WriteLine(string.Format("$File\t\"{0}\"", new FileInfo(file).Name)); |
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
MODULES="ahci sd_mod ext4" | |
BINARIES="fsck fsck.ext4" | |
FILES="" | |
HOOKS="base" |