brew install git bash-completion bash-git-prompt
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
brew install git bash-completion bash-git-prompt
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath |
# Install QEMU OSX port with ARM support | |
sudo port install qemu +target_arm | |
export QEMU=$(which qemu-system-arm) | |
# Dowload kernel and export location | |
curl -OL \ | |
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
# Download filesystem and export location |
# List unique values in a DataFrame column | |
# h/t @makmanalp for the updated syntax! | |
df['Column Name'].unique() | |
# Convert Series datatype to numeric (will error if column has non-numeric values) | |
# h/t @makmanalp | |
pd.to_numeric(df['Column Name']) | |
# Convert Series datatype to numeric, changing non-numeric values to NaN | |
# h/t @makmanalp for the updated syntax! |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
# IIS functions | |
Import-Module WebAdministration | |
function Test-WebAppPool($Name) { | |
return Test-Path "IIS:\AppPools\$Name" | |
} | |
function Get-WebAppPool($Name) { |
Expression<Func<string, bool>> f = s => s.Length < 5; | |
ParameterExpression p = Expression.Parameter (typeof (string), "s"); | |
MemberExpression stringLength = Expression.Property (p, "Length"); | |
ConstantExpression five = Expression.Constant (5); | |
BinaryExpression comparison = Expression.LessThan(stringLength, five); | |
Expression<Func<string, bool>> lambda = Expression.Lambda<Func<string, bool>> (comparison, p); | |
Func<string, bool> runnable = lambda.Compile(); | |
// Usage: | |
// your share intent | |
Intent intent = new Intent(Intent.ACTION_SEND); | |
intent.setType("text/plain"); | |
intent.putExtra(Intent.EXTRA_TEXT, "some text"); | |
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "a subject"); | |
// invoke custom chooser that contains all apps just without Facebook | |
startActivity(Tools.customChooserIntentNoFb(intent, "Share using", context)); | |
// Method: |
-- * attach functions to our existing cGame class. ('cGame:_blah') Use a preceeding underscore to make sure there is no name clash. | |
-- * access the game instance through 'g' | |
-- * access global exported C++ functions: | |
-- j_log( string ) | |
-- write to jserver log stream (you may not use '\n', a newline is appended automatically on each function call) | |
-- NOTE: for tablelog use g:log() and g:log_debug() | |
-- j_stackdump() -- dumps the stack | |
-- | |
-- * convention: | |
-- send_* - needs the client_idx as first argument (NOTE not id!) |