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
' 1. Open Excel's VBA Editor using Alt-F11 | |
' 2. Right-Click on the "VBAProject (Spreadsheet_Name)" entry and choose "Insert > Module" | |
' 3. Paste the below code starting from the line beginning with "Function" up to and including the line "End Function" | |
' 4. Now you can use the User-Defined Function in your spreadsheet | |
' | |
' SYNTAX: | |
' =Byteify(Cell, [AssumeBinaryPrefix=False]) | |
' Cell : The Cell Reference (if actually a range, it will use the top left cell only) | |
' AssumeBinaryPrefix : KB, MB, GB will be assumed to be powers of 1024 (in other words, same as KiB, MiB, GiB) | |
' |
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
; The purpose of this script is to start Need for Speed: Underground 2 (NFSU2) from TexMod, after loading a | |
; texture replacement package (TPF). This script also sets CPU Affinity of NFSU2's SPEED2.EXE, because SPEED2.EXE | |
; is not happy with a multicore processor; it wants to stay on one core and one core only. | |
#Include <Affinity_Set> | |
; Affinity_Set() is a function from affinity.ahk, which should be placed in | |
; a lib/ subdirectory (from where this script is located) | |
; My version was from https://github.com/dufferzafar/Autohotkey-Scripts/blob/master/lib/Affinity.ahk | |
; ===== TUNABLES ===== |
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
#!/usr/bin/env python | |
from __future__ import print_function, division, unicode_literals | |
__author__ = 'Pepoluan' | |
import sys | |
import codecs | |
import re | |
import datetime |
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
#!pyobjects | |
# This init.sls state file should be put into /srv/salt/vim | |
# And /srv/salt/vim/syntax should contain the VimL scriptfiles you list in syntax_updates below | |
### TUNABLES ### | |
# Separate entries with a comma | |
# Make sure every entry exists in the syntax/ directory | |
syntax_updates = [ 'sh.vim' ] |
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
C:\Users\pandu.edward\sims3py\Scripts\python.exe -m sims3utils.test_corrupt --profile E:\z\Sims3\Shrisle_0x00000000\Shrisle_0x00000000.nhd | |
--profile specified, --quiet (if specified) will be canceled | |
File to check: E:\z\Sims3\Shrisle_0x00000000\Shrisle_0x00000000.nhd | |
Stage 1: Header check...OK | |
Stage 2: Index check...OK | |
29735 Index Entries in 9.80184892035 seconds | |
Stage 3: Res check. THIS WILL TAKE A LONG TIME! | |
29735 Resources in 41.1855053353 seconds | |
No corruption found. |
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
Function CSV-FilterCols() { | |
param ( | |
[Parameter(Mandatory=$true)][String]$InCsv, | |
[Parameter(Mandatory=$true)][String[]]$ColNameRegex, | |
[Switch]$NoGlobal=$false, | |
[String]$CsvDelimiter=";", | |
[String]$OutCsv="" | |
) | |
If (!(Test-Path $InCsv)) { |
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
_Prompt() { | |
local _rslt=$? | |
## The above line *MUST* be the first line in this function. | |
## Not even a comment line may precede it. | |
# There are two sections in this function: Generate Prompt, and Save History | |
### 1. Generate colorful prompt | |
# Special username for root (EUID=0) user. |
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
Function GetU() { | |
param( | |
$usr, | |
$Order, | |
[switch]$Silent | |
) | |
$EssentialAttributes = @( | |
"EmployeeID" | |
"Email" |
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
Function Get-Ancestors() { | |
# The [switch] decorator allows specifying parameters as a flag | |
param( | |
$Identity, | |
[switch]$Silent, | |
[switch]$IncludeAllProperties | |
) | |
# Initialize the hashtable and the .Net Queue |
NewerOlder