View rubyvm.patch
diff --git a/random.c b/random.c
index e669e98..9334921 100644
--- a/random.c
+++ b/random.c
@@ -521,7 +521,7 @@ fill_random_bytes_syscall(void *seed, size_t size, int unused)
CryptGenRandom(prov, size, seed);
return 0;
}
-#elif defined __linux__ && defined SYS_getrandom
+#elif defined __linux__ && defined __NR_getrandom
View linux-Preferences.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true,
"hot_exit": false,
View logic_init.sqf
/*
clearcut script to clear foliage from markers in Arma3 on Tanoa.
1. place this script in a Game Logic init
2. place one area marker (ELLIPSE/circle) named "cutter" and size it a=b in the EDEN editor
3. copy that marker to create as many clean-cut areas as you want
on startup, this script will automatically find any trees, small rocks fallen logs
within those markers and hide them.
View bashrc_functions.sh
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
pathoverride() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1${PATH:+":$PATH"}"
fi
View genhtml.rb
# genhtml.rb
require 'rubygems'
require 'xml/libxml'
require 'libxslt'
xml_file = ARGV[0]
stylesheet_doc = XML::Document.file('homework.xsi')
stylesheet = LibXSLT::XSLT::Stylesheet.new(stylesheet_doc)
View turbulence.m
close all
% read the building picture
I1 = imread('IMG_5380.JPG');
% correct the rotation
I2 = imrotate(I1, -90);
% crop it to the area of interest
I3 = imcrop(I2,[378.5 0.5 948 814]);
% focus on an roi to isolate just the sky from the building...
rp = [0 815;70 815;251 435;570 363;949 657;949 0;0 0];
View require_speedtest.rb
require 'benchmark'
include Benchmark
def with_require
fork { require 'rake' }
end
def without_require
fork {}
end
View arma2.bat
set "STEAMHOME=F:\games\steam\steamapps\common"
rem =========================== mods =========================
rem Latest mod versions as of 10/16/2013:
rem CBA*: Community Base Addons CBA_v1.0.0pre10.7z: http://dev-heaven.net/attachments/download/19512/CBA_v1.0.0pre10.7z
rem ASR_AI: Improved AI @ASR_AI_v1_16_1.7z: http://www.armaholic.com/page.php?id=12105&a=dl
rem ACEX_SM: Improved Sound Effects @ACEX_SM_v1.13.0.100.7z: http://www.armaholic.com/page.php?id=12160&a=dl
rem Blastcore: Better Explosions @Blastcore_Visuals_R1.2.rar: http://www.armaholic.com/page.php?id=12975&a=dl
rem sthud: Situational Awareness 121209_sthud_islandfree.7z: http://www.armaholic.com/page.php?id=9936&a=dl
View Gemfile
source 'https://rubygems.org'
gemspec