Skip to content

Instantly share code, notes, and snippets.

@compcon
compcon / pilot.txt
Created Jun 14, 2021
Vulcan - Yonadav Bozarth (LL:6)
View pilot.txt
{"id":"aa9039aa-237b-4e9c-b6c4-785a65f5fb09","group":"","sort_index":0,"isLocal":true,"gistCode":"","gistOwner":"b58e0be0-90e4-4b81-90d8-e4ace15f714c","lastSync":"1000-01-01T04:56:02.000Z","level":6,"callsign":"Vulcan","name":"Yonadav Bozarth","player_name":"","status":"Active","dead":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirks":[],"current_hp":6,"reserves":[],"orgs":[],"background":"OUTLAW","mechSkills":[0,6,0,2],"licenses":[{"id":"mf_tokugawa","rank":2},{"id":"mf_sherman","rank":1},{"id":"mf_nelson","rank":3}],"skills":[{"id":"sk_apply_fists_to_faces","rank":2},{"id":"sk_show_off","rank":1},{"id":"sk_spot","rank":2},{"id":"sk_word_on_the_street","rank":3},{"id":"sk_blow_something_up","rank":1},{"id":"sk_act_unseen_or_unheard","rank":1}],"talents":[{"id":"t_hunter","rank":3},{"id":"t_juggernaut","rank":3},{"id":"t_nuclear_cavalier","rank":2},{"id":"fgtst_blade_dancer","rank":1}],"core_bonuses":["cb_heatfall_coolant_system","cb_fomorian_frame"],"loadout":{"id":
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Jun 14, 2021
Rimworld output log published using HugsLib
View output_log.txt
This file has been truncated, but you can view the full file.
Log uploaded on Monday, June 14, 2021, 9:32:26 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Achtung!(brrainz.achtung)[mv:3.1.7.0]: 0Harmony(av:2.0.2,fv:2.0.4), 0MultiplayerAPI(av:0.2.0,fv:0.1.0), AchtungMod(3.1.7)
HugsLib(UnlimitedHugs.HugsLib)[ov:8.0.1]: 0Harmony(av:2.0.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:8.0.1)
Faction Finder(RimWorldsoudanzyo.FactionFinder): Faction Finder(1.0.0)
Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.10.1)
Age Matters 2.0 [1.2](Troopersmith1.AgeMatters): AgeMatters(1.0.0), OneHediffPerLifeStage(1.0.7692.10215)
View variables.tf
variable "aws_region" {
default = "ap-southeast-1"
}
#variable "vpc_cidr" {
# default = "172.31.0.0/16"
#}
#variable "subnets_cidr" {
# type = list(string)
@CANHBK
CANHBK / slug.js
Created Jun 14, 2021 — forked from bluzky/slug.js
Remove vietnamese accent javascript / Bỏ dấu tiếng Việt
View slug.js
function stringToSlug(str) {
// remove accents
var from = "àáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîöüûñçýỳỹỵỷ",
to = "aaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiouuncyyyyy";
for (var i=0, l=from.length ; i < l ; i++) {
str = str.replace(RegExp(from[i], "gi"), to[i]);
}
str = str.toLowerCase()
.trim()
View magic.js
/**
* returns a random element from the list
* items: Array
*/
function getRandom(items) {
return items[Math.floor(Math.random() * items.length)];
}
getRandom(["asc", "desc"])
getRandom([
View movies.cypher
//Movies based on similar users and favorite genres
MATCH (u:Users)-[:WATCHED]->(m:Movies)
WHERE u.userId ='1'
WITH collect(m) as watchedMovies
MATCH (u:Users)-[:WATCHED]->(m1:Movies)-[s:SIMILAR]->(m2:Movies),
(m2)-[:GENRES]->(g:Genres), (u)-[:FAVORITE]->(g)
WHERE u.userId ='10' and m2 IN watchedMovies
RETURN distinct u.userId as userId, g.genres as genres, m2.title as title, m2.rating_mean as rating
View crash.txt
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 14.06.21 13:30
Description: Rendering overlay
java.lang.RuntimeException: Could not compile shader. See log for details.
at com.simibubi.create.foundation.render.backend.gl.shader.GlShader.<init>(GlShader.java:31) ~[create:mc1.16.5_v0.3.1c+151] {re:classloading}
at com.simibubi.create.foundation.render.backend.ShaderLoader.loadShader(ShaderLoader.java:178) ~[create:mc1.16.5_v0.3.1c+151] {re:classloading}
at com.simibubi.create.foundation.render.backend.ShaderLoader.loadProgram(ShaderLoader.java:124) ~[create:mc1.16.5_v0.3.1c+151] {re:classloading}
View Dockerfile
#(FROM python:3 is parent of WORKDIR /app i.e below instruction)
FROM python:3
#(WORKDIR /app is child of FROM python:3 i.e. above instruction)
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
RUN chmod +x /app/start.sh
ENTRYPOINT ["/bin/bash", "/app/start.sh"]
@aaronsummers
aaronsummers / add search to menu.php
Created Jun 14, 2021
add search to menu in wordpress via functions
View add search to menu.php
<?php
/**
* ANCHOR Add search box to primary menu
*/
function elab_nav_search($items, $args) {
// If this isn't the primary menu, do nothing
if ( !($args->theme_location == 'primary') ) :
return $items;
endif;
// Otherwise, add search form
@abhishekomi
abhishekomi / data-wrangling.ipynb
Created Jun 14, 2021
Created on Skills Network Labs
View data-wrangling.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.