Skip to content

Instantly share code, notes, and snippets.

View lirenyeo's full-sized avatar
🏇
Keep going!

Liren lirenyeo

🏇
Keep going!
View GitHub Profile
@lirenyeo
lirenyeo / liren.rb
Last active August 1, 2017 13:43
my rtanque bot
class Liren < RTanque::Bot::Brain
NAME = 'Liren'
include RTanque::Bot::BrainHelper
def tick!
command.speed = RTanque::Bot::MAX_SPEED
command.heading = RTanque::Heading.new(RTanque::Heading::EAST)
command.radar_heading = RTanque::Heading::ONE_DEGREE * Random.rand(360)
command.turret_heading = RTanque::Heading::ONE_DEGREE * Random.rand(360)
command.fire(RTanque::Bot::MIN_FIRE_POWER)
@lirenyeo
lirenyeo / App.css
Last active January 9, 2018 05:08
Let's build a NEXT Chatroom with React!
.message-bubble {
margin: 0;
padding: 10px;
}
.message-bubble:nth-child(even) {
background-color: #F5F5F5;
}
.message-bubble > * {
@lirenyeo
lirenyeo / flex.css
Last active March 15, 2018 03:37
Flexbox Lecture
body {
padding-bottom: 100px;
font-family: 'Raleway', sans-serif;
}
section {
margin-bottom: 2em;
}
.box {

Degree Explorer: Tech Track

Assessment

You are required to create a website with HTML, CSS and Javascript fulfills the following criteria:

HTML

Must at least have the following:

  • images
  • hyperlink to your portfolio page
  • hyperlink to disappearing message app
@lirenyeo
lirenyeo / checklist.md
Last active May 24, 2018 10:55
Pre-launch Asset Checklist

Pre-launch checklist

General Requirements

  • Unique App Name

  • App Description

  • App Category

  • App Keywords

  • Icon

    • 32-bit PNG, no rounded corners
@lirenyeo
lirenyeo / bs4-cheatsheet.md
Last active May 30, 2022 01:40
Bootstrap 4 Utilities Cheatsheet

Bootstrap 4 Utilities Cheatsheet

Media Queries

1. up

Bootstrap 4 Mixins Compiled into
@include media-breakpoint-up(xs) @media (min-width: 0px)
@include media-breakpoint-up(sm) @media (min-width: 576px)
@include media-breakpoint-up(md) @media (min-width: 768px)
@lirenyeo
lirenyeo / diff-approach.html
Last active June 30, 2018 06:20
Tic Tac Toe Explaination
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="tic.css">
</head>
<body>
<div id="board">
<div class="col0 row0 dia0">&nbsp;</div>
<div class="col1 row0">&nbsp;</div>

homebrew

  • Software Installer for mac
  • Install from brew.sh
  • Always brew update && brew upgrade
  • It looks for a formula (software) you want to install, grab the installation script from repo, then execute the installation
    • If the formula is from homebrew-core repo, that means the app you want to install is actively maintained by the core team
    • Else, you will need to brew tap <repo-name> before you brew install <package-name>

Node JS

  • Use Node Version Manager (NVM): brew install nvm

Glas Haus

glas haus search glas haus map


กลาสเฮาส์

กลาสเฮาส์ search กลาสเฮาส์ map

Go to settings

step1

Go Fowarding and POP/IMAP tab, then choose 'add forwarding address'

step2

Type in the email you want the emails received here to be forwarded to

step3