Skip to content

Instantly share code, notes, and snippets.

@goranefbl
goranefbl / email-body-share.php
Last active March 13, 2025 14:16
hardoded sharing email
<?php
/**
* Email Body for Email Share
*
* @see https://wpgens.com/docs/how-to-edit-template-files-and-keep-them-after-plugin-update/
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
@duoduoyeah
duoduoyeah / ChopTwoColumnPDF.sh
Last active March 13, 2025 13:45
This script will convert a pdf with double column to a pdf with one column. Some conference papers has double column and its hard to detect by OCR.
#!/bin/bash
# Converts a double-column PDF to a single-column PDF by extracting
# each column separately and then interleaving the pages.
#
# Usage:
# ./2one.sh <input.pdf> <output.pdf>
#
# Arguments:
# input.pdf: The path to the input PDF file.
<?php
error_reporting(E_ALL); ini_set('display_errors', 'On');
date_default_timezone_set('Europe/Amsterdam');
if(!isset($_SESSION)) {session_start();}
include("helpers/funcs.php");
include_once("phpGrid/config.php");
include(PHPGRID_LIBPATH."/inc/jqgrid_dist.php");
// Database config file to be passed in phpgrid constructor
[Event 'Chess LLM Arena']
[Site 'https://github.com/mlabonne/chessllm']
[Date '2025.03.13']
[White 'mlabonne/chesspythia-70m']
[Black 'EleutherAI/pythia-70m-deduped']
[Result '0-1']
[Time '13:43:21']
[TimeControl '180+0']
[Termination 'Checkmate']
@orfalmebi5234
orfalmebi5234 / DriverHub
Created March 13, 2025 13:43
DriverHub Crack
DriverHub Cracked
@Maja0110
Maja0110 / AndroidManifest.xml
Created March 13, 2025 13:43
"Counture Color App"
package com.example.colorcounterapp.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFBB86FC)
val PurpleGrey80 = Color(0xFFCF94DA)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6200EE)
val PurpleGrey40 = Color(0xFF7D5260)
@kanaaa224
kanaaa224 / docker-flutter-web
Last active March 13, 2025 15:03
Docker で Flutter Web
$ cd <作業ディレクトリのパス>
$ docker pull cirrusci/flutter:stable
$ docker run --name <コンテナ名> -d -p 8888:8888 -it -v ${PWD}:/build --workdir /build cirrusci/flutter:stable
$ docker exec -i -t <コンテナ名> bash
# flutter config --enable-web
# flutter create <プロジェクト名>
# cd <プロジェクト名>
# flutter run -d web-server --web-port=8888 --web-hostname 0.0.0.0
@minimal-scouser
minimal-scouser / index.ts
Created March 13, 2025 13:42
Create labelmap segmentations from a nifti mask file
// load the mask file as a volume
const maskUrl = 'mask-url'
const imageIds = await createNiftiImageIdsAndCacheMetadata({
url: maskUrl,
})
const maskVolumeId = 'mask-volume-nifti'
const maskVolume = await volumeLoader.createAndCacheVolume(maskVolumeId, {
imageIds,
@ggxky
ggxky / dynamic-single-page-login-sign-up.markdown
Created March 13, 2025 13:42
Dynamic Single Page Login + Sign Up
@nuttxpr
nuttxpr / ci-risc-v-07.log
Created March 13, 2025 13:42
[risc-v-07] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
Script started on 2025-03-13 21:35:45+08:00 [COMMAND="/home/luppy/nuttx-release/run-job.sh risc-v-07 3" TERM="tmux-256color" TTY="/dev/pts/9" COLUMNS="100" LINES="10"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh risc-v-07 3
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-07
+ [[ risc-v-07 == '' ]]
+ instance=3
+ set
+ grep TMUX
+ true
+ neofetch