Skip to content

Instantly share code, notes, and snippets.

@HaiNguyen007
HaiNguyen007 / gist:e8e5a9e121169920c60aedc9d3832b6e
Created January 4, 2020 04:47 — forked from shriphani/gist:8675874
Racket code for the little schemer
#lang racket
;; Code for the little schemer
(define (atom? x)
(and (not (pair? x))
(not (null? x))))
(define (lat? l)
(cond ((null? l) #t)
@HaiNguyen007
HaiNguyen007 / client-only-test.json
Created December 10, 2019 23:09 — forked from jocopa3/client-only-test.json
Debug command files from 0.15.90.0
{
"aigoals": {
"versions": [
{
"description": "Enables | Disables Drawing AI Goals",
"permission": "any",
"overloads": {
"default": {
"input": {
@HaiNguyen007
HaiNguyen007 / client-only.json
Created December 10, 2019 23:04 — forked from jocopa3/client-only.json
Command files from MCPE/Win10 1.0.3
{
"closewebsocket": {
"versions": [
{
"description": "commands.closewebsocket.description",
"permission": "any",
"is_hidden": true,
"overloads": {
"default": {
@HaiNguyen007
HaiNguyen007 / MCPE_1.1.0.1_Ids.txt
Created December 10, 2019 22:59 — forked from jocopa3/MCPE_1.1.0.1_Ids.txt
List of all Blocks/Items/Entity Id's in MCPE/Win10 1.1.0.1 and EDU Edition
For advanced users, a syntax highlighter for sublime text and
textmate which makes reading the list easier can be found here:
https://gist.github.com/jocopa3/e4a35921e4f978572e7f45360d231f37
============ Blocks ============
All blocks as found in the 1.1.0.0 Block::initBlocks function.
Block names are the same names used in the /give command.
Name Id Data
{
"body": {
"input": {
"message": "Hello World"
},
"origin": {
"type": "player"
},
"name": "say",
"version": 1,
// To subscribe to an event, pass this JSON text to the client through the WebSocket:
{
"body": {
"eventName": "NameOfEvent" // Replace with an event name listed below
},
"header": {
"requestId": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx", // UUID
"messagePurpose": "subscribe",
"version": 1, // Protocol version (currently 1 as-of 1.0.2)
@HaiNguyen007
HaiNguyen007 / CommandRequest.js
Created December 10, 2019 22:44 — forked from jocopa3/CommandRequest.js
MCPE/Win10 WebSocket JSON Messages
// For more information about available commands, look at the commands/standard.json file in the game's assets.
{
"body": {
"input": {}, // Command inputs go here
"origin": {
"type": "player" // Where the command originates from
},
"name": "name-of-command", // Command name goes here (i.e. for /say, enter "say")
"version": 1,
@HaiNguyen007
HaiNguyen007 / README.md
Created July 25, 2019 03:28 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@HaiNguyen007
HaiNguyen007 / README.md
Created July 24, 2019 15:13 — forked from hrwgc/README.md
download all of your gists from gist.github.com

gist list

A command line script to retrieve json for all of your gists.

usage:

github.sh [username] [password] [total number of gists] [oath or user:password]
@HaiNguyen007
HaiNguyen007 / .block
Created July 24, 2019 15:12 — forked from mbostock/.block
The Gist to Clone All Gists
license: gpl-3.0