Skip to content

Instantly share code, notes, and snippets.

@cbandara
cbandara / React Capstone Purpose Statement
Created Nov 18, 2019
React Capstone Purpose Statement
View React Capstone Purpose Statement
MyCatalog is an app that allows users to upload, search, edit and delete products. Each product has a picture, ID, price and name.
This app comes in handy in commercial uses where there are many SKU's to handle. This app would make it easy to upload new inventory
into a database connected to a consumer facing website.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Nov 18, 2019
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Monday, November 18, 2019, 8:30:21 PM
Loaded mods:
Core: (no assemblies)
Colony Manager: 0Harmony(1.2.0.1), Fluffy_ColonyManager(4.1.415.0)
Color Coded Mood Bar: 0Harmony(1.2.0.1), ColoredMoodBar(1.0.0.0)
Crossbows: (no assemblies)
Expanded Prosthetics and Organ Engineering: (no assemblies)
[KV] Faction Control - 1.0: 0Harmony(1.2.0.1), FactionControl(1.0.6885.42591)
HugsLib[ov:6.1.1]: 0Harmony(1.2.0.1), HugsLib(av:1.0.0.0,fv:6.1.1)
JecsTools: 0Harmony(1.0.9.1), 0JecsTools(1.0.8.0), AbilityUser(1.18.0.0), AbilityUserAI(1.18.0.0), CompActivatableEffect(1.18.0.0), CompAnimated(1.18.0.0), CompBalloon(1.18.0.0), CompDeflector(1.18.0.0), CompDelayedSpawner(1.18.0.0), CompExtraSounds(1.18.0.0), CompInstalledPart(1.18.0.0), CompLumbering(1.18.0.0), CompOverlays(1.18.0.0), CompOversizedWeapon(1.18.0.0), CompSlotLoadable(1.18.0.0), CompToggleDef(1.18.0.0), CompVehicle(1.17.0.1), PawnShields(1.0.0.0), ThinkNodes(1.0.0.0)
View openpanzer-save.json
{"scenario":{"name":"Warta Crossing","maxTurns":22,"date":"1939-09-05T21:00:00.000Z","atmosferic":1,"latitude":2,"ground":0,"turnsPerDay":6,"dayTurn":0,"reinforcements":{"9":[{"row":37,"col":42,"unit":{"eqid":111,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":9,"flag":8,"destroyed":false,"player":null,"transport":{"eqid":157,"ammo":4,"fuel":55,"icon":"resources/units/images/jk469.png"},"carrier":0,"moveLeft":1,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":30,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"9","id":1},{"row":37,"col":37,"unit":{"eqid":117,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":6,"flag":8,"destroyed":false,"player":null,"transport":null,"c
View index.html
<h1 id="title">Survey Form</h1>
<div id="form-outer">
<p id="description">
Please rate your service experience with E.G.
</p>
<form id="survey-form" method="post"
action="#">
<div class="rowTab">
<div class="labels">
<label id="name-label" for="name">* Name: </label>
View deploy-policy-assignments.ps1
# Define the following variables in a deployment pipeline
$deploymentLocation = "West Europe"
$resourceGroupName = "SATestAutomationAndMonitoringRG" # or $null if assign a policy to a subscription
$policyAssignmentMode = "DoNotEnforce"
#Creating the list of all template files in a folder to use for deployment
$parameterFiles = (Get-ChildItem -Path ".\policy-assignments\" -File -Filter "azuredeploy.parameters.json" -Recurse).FullName
#Initiating the deployment of policy assignment for each parameter file
$parameterFiles.foreach(
View ts-queue06b.ts
public queueContents(): void {
console.log('Queue Contents');
for (let i = 0; i < this.length; ++i) {
console.log(`queue[${i}]: ${this.queue[i]}`);
}
}
View FavoriteGenre.java
// https://leetcode.com/discuss/interview-question/373006
// Hash table solution
// Time: O(s + u), s: # of <song, genre> mapping, u: # of songs like by all users
// Space: O(s): s: # of <song, genre> mapping
public class Main {
public static void main(String[] args) {
Map<String, List<String>> userMap1 = new HashMap<>();
userMap1.put("David", Arrays.asList("song1", "song2", "song3", "song4", "song8"));
userMap1.put("Emma", Arrays.asList("song5", "song6", "song7"));
Map<String, List<String>> genreMap1 = new HashMap<>();
View untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
@lizyanghui
lizyanghui / PY0101EN-3-2-Loops.ipynb
Created Nov 18, 2019
Created on Cognitive Class Labs
View PY0101EN-3-2-Loops.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
You can’t perform that action at this time.