Skip to content

Instantly share code, notes, and snippets.

View amsheehan's full-sized avatar
🏠
Working from home

WrksOnMyMachine amsheehan

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2023-12-14T19:51:44.123Z",

Wall of Game

Coordinating a new high score

  1. When the game loads, establish an event listener to listen for message events from the parent window:
window.addEventListener('message', (event) => {
  if (event.origin !== 'https://rensa.games') return;
import React, {Component} from 'react';
class TopAppBar extends Component {
render() {
return (
<div className="mdc-top-app-bar">
{this.props.children}
</div>
);
}
import React from 'react';
import PropTypes from 'prop-types';
import "@material/button/mdc-button.scss";
const Button = ({stroked, label}) => {
const classes = `mdc-button ${stroked ? 'mdc-button--stroked' : ''}`;
return (
<button
// Create rendering context
let ctx = document.createElement('canvas').getContext('2d');
// Get font family, font size, and letter spacing,
const fontFamily = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-family').split(',')[0];
const fontSize = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-size');
const letterSpacing = parseFloat(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('letter-spacing'));
// Get padding
const paddingLeft = parseInt(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('padding-left'), 10);
# Vim plugins:
https://github.com/tpope/vim-pathogen
https://github.com/scrooloose/nerdtree
https://github.com/kien/ctrlp.vim
# System stuff
#!/bin/bash
export PATH="/usr/local/bin:$PATH"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
PS1="(╯°□°)╯︵[\w] 𝝺: "
execute pathogen#infect()
"""""""""""""""
" Navigation "
"""""""""""""""
set bs=indent,eol,start
set incsearch
set hlsearch
session_attributes: {
session_id: '',
user_id: '',
user_role: ''
}
Verifying myself: My Bitcoin username is +ams. https://onename.io/ams