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
$win_user = "ipc" | |
$linux_user = "ipc" | |
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc" | |
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs" | |
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin") | |
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") } | |
Add-MpPreference -ExclusionPath $base_path |
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
/// Add Gap between the boxes | |
/// | |
/// @author Sascha Fuchs | |
/// | |
/// @group core - cssgrid | |
/// | |
/// @param {list} $boxes - List with box sizes | |
/// @param {string} $gap - Optional column gap | |
@function box-gap($boxes, $gap) { | |
$box: (); |
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
<?php | |
/** | |
* Execution time check for: (list/each,foreach) vs (array_walk, array_map, array_reduce, array_filter) | |
* @docs to read | |
* http://www.giorgiosironi.com/2010/02/stop-writing-foreach-cycles.html | |
* http://www.pastie.org/829318 | |
* http://php.net/manual/en/function.array-walk.php#112722 | |
* http://zaemis.blogspot.com/2013/06/building-array-with-arrayreduce.html | |
* (!) http://stackoverflow.com/questions/2473989/list-of-big-o-for-php-functions/2484455#2484455 | |
* http://www.faieta.net/wp/performance-implications-of-closures-in-php/ |
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 encodeRGB(r,g,b) { | |
return encode_triplet(0,r,g)+encode_triplet(b,255,255); | |
} | |
function encode_triplet(e1, e2, e3) { | |
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
enc1 = e1 >> 2; | |
enc2 = ((e1 & 3) << 4) | (e2 >> 4); | |
enc3 = ((e2 & 15) << 2) | (e3 >> 6); | |
enc4 = e3 & 63; |