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
import gc | |
import logging | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import seaborn as sns | |
from keras.applications import EfficientNetV2M | |
from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint, LearningRateScheduler | |
from keras.optimizers import Adam | |
from keras.utils import to_categorical |
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
def extract_features(landmarks): | |
distances = calculate_pairwise_distances(landmarks) | |
angles = [] | |
num_points = len(landmarks) // 2 | |
for i in range(num_points): | |
for j in range(num_points): | |
for k in range(num_points): | |
if i != j and i != k and j != k: | |
angle = calculate_angle([landmarks[2*i], landmarks[2*i + 1]], | |
[landmarks[2*j], landmarks[2*j + 1]], |
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 | |
class TextOnImage | |
{ | |
public $jpegQuality = 100; | |
public $ttfFontDir = 'fonts'; | |
private $ttfFont = false; |
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 | |
/** | |
* Class ImageHelper | |
* | |
* Simple class to manage image load, save and resize | |
* | |
* Usage: | |
* | |
* $image = new ImageHelper; |
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
var input = [ | |
'00100', | |
'11100', | |
'11000', | |
'11011', | |
'11011', | |
]; | |
let gamma = ''; | |
for (let i=0; i<input[0].length; i++) { |
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 | |
/** | |
* Class Encoding | |
* Usage: | |
* $text = Encoding::UTF8FixWin1252Chars($text); | |
* $text = Encoding::replaceBroken($text); | |
*/ | |
class Encoding { |
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 getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min | |
} | |
function getCard() { | |
var cards = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']; | |
return cards [getRandomInt(0, cards.length - 1)] | |
} | |
function getSumm(arr) { | |
var sum = 0; |
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 | |
class AuthControl extends ActionFilter | |
{ | |
public $denyCallback; | |
/** | |
* @inheritdoc | |
*/ | |
public function beforeAction($action) | |
{ |
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
--Druid Feral Rotation (PvP)-- | |
--Created By Mhswarior-- | |
-- Constants-- | |
UPDATE_INTERVAL = math.random(.2,.4) -- in seconds | |
LAST_UPDATE = GetTime() | |
EmpoweredRip = false | |
EmpoweredRake = false | |
InitFrame = CreateFrame("Frame") |
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
<?xml version="1.0" encoding="utf-8" ?><SHAMAN><Ability><Name>scripts</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua> | |
local Enabled = false | |
-- Use chain or nope | |
local Cleave = true | |
-- INIT VARIABLES | |
local tTarget = &quot;target&quot; | |
local fTarget = &quot;focus&quot; | |
local a1 = &quot;arena1&quot; |
NewerOlder