A list of the domain names of all brands owned and operated by Valnet, according to the page hosted at https://www.valnetinc.com/en/our-brands (2024-12-18)
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
<?php | |
class STATIC_CLASS_TEST { | |
static $foo; | |
static function init() { | |
self::$foo = ['foo', 'bar', 'baz', $_ENV['MY_ENV_VARIABLE']]; | |
} | |
} |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
func main() { | |
src := []float64{} | |
for i := 0; i < 100; i++ { |
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
use std::process::Command; | |
fn main() { | |
let tailwind_cmd = "npx tailwindcss -i input.css -o assets/app.css"; | |
if cfg!(target_os = "windows") { | |
Command::new("cmd").arg("/C").arg(tailwind_cmd).status() | |
} else { | |
Command::new("sh").arg("-c").arg(tailwind_cmd).status() | |
} |
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
def uniques_by_col(df: pd.DataFrame, drop_columns=[]) -> pd.DataFrame: | |
u = {} | |
for col in df.columns.tolist(): | |
if str(col) not in drop_columns: | |
u[col] = pd.Series([(i[0], v) for i, v in dftxt[[col]].value_counts().iteritems()], dtype="object") | |
df2 = pd.DataFrame.from_dict(u, orient="index").T.replace({None: np.nan}) | |
col_order = [] | |
for col in df2.columns.tolist(): | |
if str(col) not in drop_columns: | |
df2[[(str(col), "Val"), (str(col), "Count")]] = pd.DataFrame(df2[col].tolist(), index=df2.index) |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Print("Hello, ", "playground\n") | |
s := AppState{} | |
a := ActionStack[AppState]{} |
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
use bevy::prelude::*; | |
pub struct GlobalChildRef(pub Entity); | |
pub struct GlobalChild; | |
fn setup( | |
mut commands: Commands, | |
mut materials: ResMut<Assets<ColorMaterial>>, | |
global_child: ResMut<GlobalChildRef>, | |
) { |
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
/** | |
* @type {React.FC<{ | |
* propertyOne: string, | |
* propertyTwo: ComplicatedClass<GenericType>, | |
* propertyThree: any, | |
* propertyFour: (fxnArg: object) => string | |
* }>} | |
*/ | |
const ComplicatedComponent = ({propertyOne, propertyTwo, propertyThree, propertyFour}) => { |