Skip to content

Instantly share code, notes, and snippets.

@compcon
compcon / pilot.txt
Last active Dec 1, 2020
Colossus - Soosaipillai Armon (LL:6)
View pilot.txt
{"id":"ae54a758-5ec9-4ce5-a2f9-506942c716d9","campaign":"","group":"","sort_index":0,"cloudID":"","cloudOwnerID":"bd6e052c-f7f3-4905-9327-e1f87b7c872d","lastCloudUpdate":"Mon Nov 30 2020 22:23:26 GMT-0800 (Pacific Standard Time)","level":6,"callsign":"Colossus","name":"Soosaipillai Armon","player_name":"","status":"Active","mounted":true,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirk":"","current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[2,0,0,0],"licenses":[{"id":"mf_tortuga","rank":3}],"skills":[{"id":"sk_invent_or_create","rank":1},{"id":"sk_hack_or_fix","rank":1},{"id":"sk_charm","rank":1},{"id":"sk_investigate","rank":1}],"talents":[{"id":"t_ace","rank":1},{"id":"t_bonded","rank":1},{"id":"t_brawler","rank":1}],"core_bonuses":[],"loadout":{"id":"cfd3dcba-679d-4f33-8421-0a18ac38d3ac","name":"Primary","armor":[null],"weapons":[null,null],"gear":[null,null,null],"extendedWeapons":[null],"extendedGear":[null,null]},"mechs":[{"id":"bdd5e164-7731-4409-92
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@compcon
compcon / pilot.txt
Created Dec 1, 2020
Colossus - Soosaipillai Armon (LL:6)
View pilot.txt
{"id":"ae54a758-5ec9-4ce5-a2f9-506942c716d9","campaign":"","group":"","sort_index":0,"cloudID":"2728887acf3b60ab1e1ccf5d17f46fa1","cloudOwnerID":"bd6e052c-f7f3-4905-9327-e1f87b7c872d","lastCloudUpdate":"Mon Nov 30 2020 22:22:10 GMT-0800 (Pacific Standard Time)","level":6,"callsign":"Colossus","name":"Soosaipillai Armon","player_name":"","status":"Active","mounted":true,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirk":"","current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[2,0,0,0],"licenses":[{"id":"mf_tortuga","rank":3}],"skills":[{"id":"sk_invent_or_create","rank":1},{"id":"sk_hack_or_fix","rank":1},{"id":"sk_charm","rank":1},{"id":"sk_investigate","rank":1}],"talents":[{"id":"t_ace","rank":1},{"id":"t_bonded","rank":1},{"id":"t_brawler","rank":1}],"core_bonuses":[],"loadout":{"id":"cfd3dcba-679d-4f33-8421-0a18ac38d3ac","name":"Primary","armor":[null],"weapons":[null,null],"gear":[null,null,null],"extendedWeapons":[null],"extendedGear":[null,null]},"mech
View update_deal_with_associated_product_values.js
//Validating Deal ID
if(deal_id != null)
{
//Getting Deal entry
deal_entry = zoho.crm.getRecordById("Deals",deal_id);
//Validating Deal entry
if(!deal_entry.isEmpty())
{
//Getting subform entry
associated_products = deal_entry.get("Product_Details");
@compcon
compcon / pilot.txt
Created Dec 1, 2020
Colossus - Soosaipillai Armon (LL:6)
View pilot.txt
{"id":"ae54a758-5ec9-4ce5-a2f9-506942c716d9","campaign":"","group":"","sort_index":0,"cloudID":"","cloudOwnerID":"bd6e052c-f7f3-4905-9327-e1f87b7c872d","lastCloudUpdate":"","level":6,"callsign":"Colossus","name":"Soosaipillai Armon","player_name":"","status":"Active","mounted":true,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirk":"","current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[2,0,0,0],"licenses":[{"id":"mf_tortuga","rank":3}],"skills":[{"id":"sk_invent_or_create","rank":1},{"id":"sk_hack_or_fix","rank":1},{"id":"sk_charm","rank":1},{"id":"sk_investigate","rank":1}],"talents":[{"id":"t_ace","rank":1},{"id":"t_bonded","rank":1},{"id":"t_brawler","rank":1}],"core_bonuses":[],"loadout":{"id":"cfd3dcba-679d-4f33-8421-0a18ac38d3ac","name":"Primary","armor":[null],"weapons":[null,null],"gear":[null,null,null],"extendedWeapons":[null],"extendedGear":[null,null]},"mechs":[{"id":"bdd5e164-7731-4409-9263-4bc0688fc1ea","name":"Evtest","notes":"","gm_note":"",
@donysukardi
donysukardi / Code.gs
Created Dec 1, 2020
Google Sheets Apps Script
View Code.gs
// 1. Run > setup
// - to set the document id
//
// 2. Publish > Deploy as web app
// - enter Project Version name and click 'Save New Version'
// - set security level and enable service (most likely execute as 'me' and access 'anyone, even anonymously)
//
// 3. Copy the 'Current web app URL' and post this in your form/script action
//
// 4. Insert column names on your destination sheet matching the parameter names of the data you are passing in (exactly matching case)
@JohnAntonios
JohnAntonios / UnityLoader.js
Created Dec 1, 2020
A fixed UnityLoader for loading WebGL exports in Chromium on Unity versions >= 2019.
View UnityLoader.js
var UnityLoader=UnityLoader||{Compression:{identity:{require:function(){return{}},decompress:function(e){return e}},gzip:{require:function(e){var t={"inflate.js":function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=a.inflateInit2(this.strm,t.windowBits);if(r!==l.Z_OK)throw new Error(u[r]);this.header=new f,a.inflateGetHeader(this.strm,this.header)}function o(e,t){var r=new n(t);if(r.push(e,!0),r.err)throw r.msg||u[r.err];return r.result}function i(e,t){return t=t||{},t.raw=!0,o(e,t)}var a=e("./zlib/inflate"),s=e("./utils/common"),d=e("./utils/strings"
@ZakiRangwala
ZakiRangwala / detect.py
Created Dec 1, 2020
Pipeline Configuration - Mask Detection
View detect.py
# Configuration
def config():
CONFIG_PATH = MODEL_PATH+'/'+CUSTOM_MODEL_NAME+'/pipeline.config'
config = config_util.get_configs_from_pipeline_file(CONFIG_PATH)
pipeline_config = pipeline_pb2.TrainEvalPipelineConfig()
with tf.io.gfile.GFile(CONFIG_PATH, "r") as f:
proto_str = f.read()
text_format.Merge(proto_str, pipeline_config)
# Modify pipeline
pipeline_config.model.ssd.num_classes = 2
View Room
import React, {useState, useEffect} from "react";
import Facilities from "../facitilies/facilities";
import PropTypes from "prop-types";
import SendCommentForm from "../send-comment-form/send-comment-form";
import withSendCommentForm from "../../hocs/with-sent-comment-form/with-sent-comment-form ";
import ReviewsList from "../reviews-list/reviews-list";
import Map from "../map/map";
import withOffersList from "../../hocs/with-offers-list/with-offers-list";
import Loader from "react-loader-spinner";
import Offers from "../offers-list/offers-list";
@crhntr
crhntr / generate_javascript_class.go
Created Dec 1, 2020
This script generates Javascript classes for go structs.
View generate_javascript_class.go
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"reflect"
"strings"
You can’t perform that action at this time.