openpgp4fpr:7E98D49C02A7337B54A8BA8F38D946D7F0A3FAAB
This file contains hidden or 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
import pandas as pd | |
import numpy as np | |
from datetime import datetime, timedelta | |
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.linear_model import Ridge | |
from sklearn.model_selection import cross_val_score, LeaveOneOut | |
def preprocess_data(data): | |
df = pd.DataFrame(data) |
This file contains hidden or 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
#!/bin/bash | |
KEXT_DIR="EFI/OC/Kexts" | |
FILES=`find $KEXT_DIR -depth 1 | sort` | |
for f in $FILES | |
do | |
plutil -p $f/Contents/Info.plist | | |
awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-2)}\ |
This file contains hidden or 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
+++++ +++++ [ | |
> +++++ ++ | |
< - | |
] | |
> - . | |
< +++++ +++++ [ | |
> ++++ | |
< - |
This file contains hidden or 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
public Bitmap blur(Bitmap inBitmap, int radius) { | |
if (radius >= 25) { | |
radius = 25; | |
} | |
Bitmap bitmap = inBitmap.copy(inBitmap.getConfig(), true); | |
final RenderScript rs = RenderScript.create(getApplicationContext()); | |
final Allocation input = Allocation.createFromBitmap( rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT ); |