Discover gists
View RL.py
import gym | |
import random | |
import numpy as np | |
from keras.layers import Dense, Flatten | |
from keras.models import Sequential | |
from keras.optimizers import Adam | |
env = gym.make('CartPole-v1') | |
states = env.observation_space.shape[0] |
View example-readable-from.js
const { Readable } = require('stream'); | |
const data = [ | |
"This is the stream data 1", | |
"This is the stream data 2", | |
"This is the stream data 3", | |
"This is the stream data 4", | |
"This is the stream data 5" | |
]; |
View gist:b2721f54f34fc740e4e2facdd44cb800
{ | |
"short_name": "OfferLand", | |
"name": "OfferLand", | |
"version": "0.1.1", | |
"manifest_version": 2, | |
"browser_action": { | |
}, | |
"background": { | |
"scripts": ["background.js"] | |
}, |
View pilot.txt
{"id":"2885efa2-c70d-4e24-b0db-00a5bf8d14d6","group":"","sort_index":0,"cloudID":"2c5b71d1e1274a19ec1024e645a6dfd4","cloudOwnerID":"6bf79536-8bed-4ea7-bf74-8e6f8225c1ce","lastCloudUpdate":"Sat Jan 23 2021 22:49:33 GMT-0500 (Eastern Standard Time)","level":0,"callsign":"Happy Hour","name":"Ambroz Beech","player_name":"","status":"Active","dead":false,"text_appearance":"<p>Age: 37, Build: 5'10\" with a beer gut, Face: rough with a pasty complexion and weary eyes. Long hair and a bushy mustache. Socially awkward and not too friendly, but you can rely on him in a pinch.</p>","notes":"","history":"<p>Ambroz grew up in a bar on some backwater planet that he can't remember the name of. The owner was nice enough to care for him after his mother not-so-ceremoniously dumped him at the curb as a toddler. It wasn't an easy life, but growing up behind the counter definitely has its perks. For example, he knows his way around a drink menu, possibly a little too well. He promises he'll sober up for the job, but we'll see if |
View json2yaml.rb
require 'json' | |
require 'yaml' | |
# print to screen | |
puts JSON.load('some.json').to_yaml | |
# write to file | |
=begin | |
thing = JSON.load('some.json') | |
File.open('some.yaml', 'w') do |f| |
View gist:d94df671e13d36dec1198f6e15202401
//Write function bmi that calculates body mass index (bmi = weight / height ^ 2). | |
//if bmi <= 18.5 return "Underweight" | |
//if bmi <= 25.0 return "Normal" | |
//if bmi <= 30.0 return "Overweight" | |
//if bmi > 30 return "Obese" |
View output_log.txt
Log uploaded on Sunday, January 24, 2021, 11:46:45 AM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Humanoid Alien Races 2.0(erdelf.HumanoidAlienRaces): 0Harmony(2.0.2), AlienRace(1.0.0) | |
Humanoid_Alien_Races_2.0_zh(RWZH.ChinesePack.HumanoidAlienRaces): (no assemblies) | |
[L] House Maid Nukos(Vanya.Agent.HouseMaidNukos): MaidNukos(1.0.0) | |
Hardworking Nukos(Dango.HardworkingNukos_copy): NukoWrok(1.0.0) | |
ReGrowth_zh_pack(RWZH.ChinesePack.BOTR): (no assemblies) |
View mountaincar.py
import gym | |
import numpy as np | |
import random | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout | |
from keras.optimizers import Adam | |
from collections import deque | |
class DQN: |
View pilot.txt
{"id":"db60fd76-fb7d-474c-95ce-60d8b1c7c419","group":"","sort_index":0,"cloudID":"23a1a1fe10e05c30f334445fa792cff5","cloudOwnerID":"40ad3c74-b997-4967-9ce9-5d77fa669750","lastCloudUpdate":"Sat Jan 23 2021 22:45:50 GMT-0500 (Eastern Standard Time)","level":1,"callsign":"SIREN","name":"Dack Faye","player_name":"Todd","status":"Active","dead":false,"text_appearance":"","notes":"RESERVES (as of session 14):\n\n- N/A","history":"<p>A well-rounded military prototype mechanic who is haunted by the past of his people’s decision to reject Union; through his physical prowess and ingenuity, he has been given a cautious second chance by the MSMC to strike his name from “the list”.</p>","portrait":"","cloud_portrait":"https://i.imgur.com/349R3rx.jpg","quirks":[],"current_hp":9,"reserves":[],"orgs":[],"background":"MECHANIC","mechSkills":[0,2,1,0],"licenses":[{"id":"mf_genghis","rank":1}],"skills":[{"id":"sk_stay_cool","rank":1},{"id":"sk_spot","rank":1},{"id":"sk_read_a_situation","rank":1},{"id":"sk_hack_or_fix","rank":1 |
View 🌎_Seismic_Facies_Identification_Challange.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.