Skip to content

Instantly share code, notes, and snippets.

View 11's full-sized avatar

Doug Rudolph 11

View GitHub Profile
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADBAECAQIBAgMEBwgPMD/A/wD/AP8A/wD/AP8A/wD/AAAAAAAAAAAYCBYGCQcIAwQAGBgkGCQ8QjxCfoH/AP8AAwQHGB9gf4B/gB9gBxgDBP8A/wD/AP8A/wD/AP8A/wAAAQBBATITLA8QDxAfID/A+AD/cP93/3f/d/93/3f/dwAAgAD4AP9w/3b/dv92/3b/d/8A/37/fv9+/zB/Bw8H/3b/AP78/vz+/P74/PD4wAMBBwHHA+eD/8P/5//3/3D/Z/9f/x9/P38/fx8/Hz8HAwB7AX8xfzF/OX8Z/x3/z8AA/ID8mPyY/5j/u/+z//b/7/9//3//P38/fx8/Dx8H//7//P78/vz++Pz4/PD44AAAAAD/AP9+/37/fv9+/z5/Pn8+fx4/Hj8OHwAAAAAAAAAAAAAADw8THBIdJjkkOwAAAAAAAAAAwMBwsNgomGgAADw8PyMfEA8IBwQcGz8gAAAAAPz8/AT4GOAgONj8BH9A/4D/gP+Af0B/QD8wDw/+Av8B/wH/Af4C/gL8DPDwAPwA8ADgAMAAwACAAIAAgAA/AA8ABwADAAMAAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/wH/AP/Af8A/MB9wDHwF//wD/AP8A/wD/AP8A/2aZ//8D/gP8D/gP8D/gP8D/gP8A/wD/wD/AP/AP8A/8A/wDAP8A/wD/AP8A/wD/AP9mmQD/AP8D/AP8D/AP8D/AP8Dzz/PP98j/wPDP4P//////88/zz/MP8w8D/wf//////wAAHh4MDAwMDAxMTDg4AAAAAHJympqampubmppycgAAAABvb2NjY2Pj42NjY2MAAAAA3NwmJiYmJiYmJhwcAAAAADY2NjY8PDg4PDw2NgAAAABycvr6m5uamvr6mpoAAAAAb29jY2Nj4+NjY2NjAAAAANzcJiYmJiYmJiYcHAAA
@11
11 / SlateCommandReference.md
Created January 2, 2020 21:02
v0.47.x Slate Js Command

Commands

The core Editor ships with a bunch of built-in commands that provide common behaviors for rich text editors.

Current Selection Commands

These commands act on the document based on the current selection. They are equivalent to calling the Document Range Commands with the current selection as the range argument, but they are there for convenience, since you often want to act with the current selection, as a user would.

addMark

@11
11 / index.html
Created September 10, 2019 03:22
<!DOCTYPE html>
<html>
<head>
<link rel="Stylesheet" type="text/css" href="./theme.css" />
<script src =" ./2048.js"></script>
<title> 2048 </title>
</head>
<body>
<section class="content">
@11
11 / theme.css
Created September 10, 2019 03:21
html,body {
background-color: #FAF8EF;
color: #786D65;
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
}
.center {
display:flex;
flex-direction: row;
justify-content: center;
@11
11 / 2048.js
Created September 10, 2019 02:20
window.onload=function() {
let canvas = document.getElementById("2048");
let g = canvas.getContext("2d");
window.addEventListener("keydown", function(event) {
switch(event.keyCode) {
//left arrow
case 37: {
<html>
<head>
<!-- content inside tab-->
<title>Andrew Rudolph - Homepage</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<!-- style html -->
<style>
@11
11 / Alien.cs
Created September 10, 2018 04:51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace SpaceInvadersRecurseCenter.src
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExampleState : IState {
private AudioSource sound;
private AudioClip shootSound;
private GameObject object;
package com.pariah.engine.managers;
import java.util.ArrayList;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.TiledMapTileLayer;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;
@11
11 / Box2DRunner.java
Last active October 8, 2016 02:22
Part 2 - Medium blog - Box2D & Box2d Lights
public class Box2DRunner extends ApplicationAdapter
{
private OrthographicCamera camera; //#1
private World world; //#2
private Box2DDebugRenderer debugRenderer; //#3
@Override
public void create()
{