Discover gists
View LZ77.java
import java.io.*; | |
/** | |
* Class for performing LZ77 compression/decompression using text IO | |
* | |
* @author Mark Hall | |
* @version 1.0 | |
*/ | |
public class LZ77T { | |
public static final int DEFAULT_BUFF_SIZE = 1024; |
View output_log.txt
Log uploaded on Thursday, October 28, 2021, 7:32:59 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:1.1.1.0]: 0Harmony(2.1.1), HarmonyMod(1.1.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.1.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:9.0.1) | |
Stack XXL(Indeed.StackXXL)[ov:1.0.0]: StackXXL(1.0.0) | |
Show Draftees Weapon(targhetti.ShowDrafteesWeapon): 0Harmony(av:2.1.1,fv:2.0.0.8), ShowDrafteesWeapon(1.0.0) | |
RunAndGun(roolo.RunAndGun)[ov:4.0.0]: 0Harmony(av:2.1.1,fv:2.0.4), RunAndGun(1.0.0) | |
RimHUD(Jaxe.RimHUD): RimHUD(1.8.0) | |
Work Tab(Fluffy.WorkTab)[mv:3.21.303]: 0MultiplayerAPI(av:0.3.0,fv:0.3.0), FluffyUI(av:4.0.0,fv:4.4.335), WorkTab(av:4.0.0,fv:4.4.335) |
View script_for_10437.py
from vf_tpm.sap.bo_sap_pricing_new import generate_all_sap_pricing | |
import datetime | |
registers_to_delete = [(4086109, 'sap_mxnl_a979'), (4624474, 'sap_mxnl_a814')] | |
for knumh, table in registers_to_delete: | |
db.user_db[table].delete_one({'knumh':knumh}) | |
generate_all_sap_pricing(from_date=datetime.datetime(2016, 10, 1), check_promotions=True, debug=True) |
View README.txt
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
View check-custom-protocol-supported-js.html
<!DOCTYPE html> | |
<html> | |
<head lang="ja"> | |
<meta charset="UTF-8"> | |
<title>Custom Protocol Detection</title> | |
</head> | |
<body> | |
<a href="microsoft-edge:https://itccorporation.jp" class="custom_protocol">microsoft-edge:https://itccorporation.jp</a><br /> | |
<a href="microsoft-edgeXXX:https://itccorporation.jp" class="custom_protocol">microsoft-edgeXXX:https://itccorporation.jp</a><br /> | |
<a href="foobar:https://itccorporation.jp" class="custom_protocol">foobar:https://itccorporation.jp</a><br /> |
View gh-action-vercel-deployment.yml
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
env: | |
VERCEL_OPTIONS: '--scope ORG_NAME --token ${{ secrets.VERCEL_TOKEN }}' |
View settings.py
# Application definition | |
INSTALLED_APPS = [ | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', |
View exemplo-aplicacao.js
/* | |
* Será apenas o método adicionarCarrinho(), mas se tiver algum outro método que chame o "Vue.prototype.$carrinho.add" | |
* é importante alterar também para passar o objeto do produto para gerar o evento de addToCart | |
* -- Verificar sempre o datalayer | |
*/ | |
/* Antes */ | |
<button @click="adicionarCarrinho(prod.carrinho, prod.rota)"> |
View KG024.ino
#include "I2Cdev.h" | |
#include "MPU6050.h" | |
#include <Adafruit_BMP085.h> | |
#include <HMC5883L_Simple.h> | |
MPU6050 accelgyro; | |
Adafruit_BMP085 bmp; | |
HMC5883L_Simple Compass; | |
int16_t ax, ay, az; | |
int16_t gx, gy, gz; | |
#define LED_PIN 13 |
View 1.boot-debian.txt
~ $ pkg upgrade -y | |
~ $ pkg install screen qemu-utils qemu-common qemu-system-x86_64-headless -y | |
~ $ mkdir debian && cd $_ | |
~/debian $ screen | |
~/debian $ qemu-img create -f qcow2 debian.img 4G | |
~/debian $ qemu-system-x86_64 -nographic -m 4G -hda debian.img | |
< PRESS Ctrl+B quickly > | |
iPXE> dhcp net0 | |
iPXE> kernel http://ftp.jaist.ac.jp/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux console=ttyS0 | |
< Keep in mind, Backspace key doesn't work well. Use Delete key instead. > |
NewerOlder