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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
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
#include <string.h> | |
void *__memcpy_glibc_2_2_5(void *, const void *, size_t); | |
asm(".symver __memcpy_glibc_2_2_5, memcpy@GLIBC_2.2.5"); | |
void *__wrap_memcpy(void *dest, const void *src, size_t n) | |
{ | |
return __memcpy_glibc_2_2_5(dest, src, n); | |
} |
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
{-# LANGUAGE BangPatterns #-} | |
module Main where | |
import Prelude | |
import Data.ByteString as B | |
import Data.ByteString.Char8 as BC8 | |
import System.Environment (getArgs) | |
import Control.Arrow | |
import Data.List (sortBy) |
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
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} | |
module Main where | |
import Network.Wai | |
import Network.Wai.Handler.Warp | |
import Network.HTTP.Types | |
import qualified Data.ByteString.Char8 as B | |
import Control.Monad.Trans | |
import System.IO | |
import Data.List.Split (splitOn) |
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
{-# LANGUAGE GADTs #-} | |
module Main where | |
import Prelude hiding (print, putStr, putStrLn) | |
import GenericGameExperiments | |
import GenericGame | |
import AgentGeneric | |
import ThreadLocal |
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
{-# LANGUAGE ImplicitParams, Rank2Types, BangPatterns #-} | |
module ThreadLocal where | |
import Control.Concurrent | |
import Text.Printf | |
import System.IO | |
type ThrLocIO a = (?thrLoc :: ThreadLocal) => IO a | |
data ThreadLocal = ThreadLocal { tl_stdout :: MVar Handle |
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
# -*- coding: utf-8 -*- | |
### | |
### | |
##### SAVE IN FORMAT: "UTF-8 WITHOUT BOM" OR "ANSI AS UTF-8" | |
### | |
### | |
# Plugin: "BathTiles" | |
# Author: Krzysztof Skrzetnicki, Dan Rathbun | |
# License: GPLv3 |
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
# Wtyczka: "P-ytkuj" | |
# Autor: Krzysztof Skrzŕtnicki | |
# Licencja: GPLv3 | |
# Wersja: 1.2 | |
# First we pull in the standard API hooks. | |
require 'sketchup.rb' | |
# Show the Ruby Console at startup so we can | |
# see any programming errors we may make. |
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
// Originally based on PyAliasAnalysis from the unladen-swallow project! | |
#include "llvm/ADT/APInt.h" | |
#include "llvm/ADT/DenseMap.h" | |
#include "llvm/ADT/SmallPtrSet.h" | |
#include "llvm/Analysis/AliasAnalysis.h" | |
#include "llvm/Analysis/ScalarEvolution.h" | |
#include "llvm/Analysis/ScalarEvolutionExpressions.h" | |
#include "llvm/Analysis/Passes.h" | |
#include "llvm/Argument.h" | |
#include "llvm/Constants.h" |
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
/* | |
g++ -O3 -mtune=native -march=native -fomit-frame-pointer lookandsay.cpp -o lookandsay.out | |
time ./lookandsay.out > /dev/null | |
./lookandsay.out > /dev/null 2,88s user 0,05s system 99% cpu 2,948 total | |
*/ | |
#include <vector> | |
#include <iostream> |
NewerOlder