Skip to content

Instantly share code, notes, and snippets.

View gist:960d4c76ee68599a46e5a9cf35cacc5f
mods.techreborn.solidCanningMachine.addRecipe(<techreborn:dynamiccell>.withTag({Fluid: {FluidName: "fluidsulfur", Amount: 1000}}), <ore:dustSulfur>,<techreborn:dynamiccell>, 100, 1);
mods.techreborn.industrialGrinder.removeRecipe(<techreborn:dust:64>);
mods.techreborn.industrialGrinder.addRecipe(<techreborn:dust:64>,<techreborn:smalldust:66>*6,<techreborn:smalldust:38>*2,null,<techreborn:ore:1>,null,<liquid:water>*1000,100,128);
mods.techreborn.industrialGrinder.addRecipe(<techreborn:dust:64>,<techreborn:smalldust:66>*6,<techreborn:dust:38>*2,null,<techreborn:ore:1>,null,<liquid:fluidmercury>*1000,100,128);
View NewClass
//2- Floating points
//---------------------
// float32 bit - double 64bit
public class NewClass {
public static void main(String[] args) {
double d = 3.2;
float e = 0.5f;
float w = (float)0.5;
}
@erangaeb
erangaeb / offer.scala
Created Feb 16, 2020
offer case class
View offer.scala
case class Offer(id: String,
company: String,
lat: Double,
lon: Double,
description: String,
blob: String,
typ: String,
timestamp: Date = new Date())
View Potential Maintainers
Maintainers:
danieldk: maturin, maturin, maturin, maturin
View Changed Paths
aarch64-linux maturin
i686-linux maturin
x86_64-darwin maturin
x86_64-linux maturin
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Feb 16, 2020
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Sunday, February 16, 2020, 5:18:04 PM
Loaded mods:
Core: (no assemblies)
EdB Prepare Carefully: 0Harmony(1.2.0.1), EdBPrepareCarefully(1.0.16.0)
Better Spots: (no assemblies)
Interaction Bubbles: 0Harmony(1.2.0.1), Bubbles(1.5.0.0)
[XND] Turret Extensions: 0Harmony(1.2.0.1), TurretExtensions(1.2.7.0)
More Vanilla Turrets 1.0: (no assemblies)
More Vanilla Turrets - Turret Extensions Patch: (no assemblies)
HugsLib[ov:6.1.3]: 0Harmony(1.2.0.1), HugsLib(av:1.0.0.0,fv:6.1.3)
View merge_bilibili_video.sh
#!/bin/bash
# for: bulk merge bilibili UWP download file *.flv
# by: blog.502.li
# date: 2019-01-12
# 将该脚放到 UWP 客户端下载缓存主目录下执行,安装 ffmpeg、jq
# repo https://github.com/muzi502/mbcf
set -xu
root_dir=$(pwd)
mp4_dir=${root_dir}/mp4
@codaamok
codaamok / Invoke-CM1902LabBuild.ps1
Created Feb 16, 2020
Install AutomatedLab and start CM-1902 lab build
View Invoke-CM1902LabBuild.ps1
$Path = "{0}\AutomatedLab.msi" -f $env:temp
Invoke-WebRequest -Uri "https://github.com/AutomatedLab/AutomatedLab/releases/latest/download/AutomatedLab.msi" -OutFile $Path
Start-Process "msiexec" -ArgumentList @("/i", $Path, "/qb") -Wait -ErrorAction "Stop"
if (-not(Get-Package -Name "AutomatedLab" -ProviderName "msi")) {
Write-Error "AutomatedLab did not install" -ErrorAction "Stop"
}
try {
View gist:22035ee97f2bfeb4d6eb001980bb8e4b
function main() {
try {
doAllTheThings();
}
catch(FatalException) {
}
}
function doAllTheThings() {
@ccisne
ccisne / PY0101EN-1-1-Types.ipynb
Created Feb 16, 2020
Created on Cognitive Class Labs
View PY0101EN-1-1-Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.