Skip to content

Instantly share code, notes, and snippets.

View eugenelee0420's full-sized avatar

Eugene Lee eugenelee0420

View GitHub Profile
@eugenelee0420
eugenelee0420 / screenrecord.sh
Last active August 5, 2018 10:00
Cast android screen to computer using adb, then display using ffplay
adb shell screenrecord --size=1280x720 --output-format=h264 --bit-rate=16m - | ffplay -framedrop -framerate 60 -bufsize 16M -probesize 16M -
@eugenelee0420
eugenelee0420 / forloop.php
Created September 27, 2016 13:01
PHP number diamond with for loops
<?php
echo "<center>";
$x=30;
// Incremental loop for each horizontal line
for($root=0;$root<=$x;$root++) {
// Incremental loop (1 till current $root)
for($inc=1;$inc<$root;$inc++) {
echo $inc;
echo " ";
@eugenelee0420
eugenelee0420 / quad_equation.php
Created September 25, 2016 06:59
PHP to solve quadratic equations
<html>
<body>
<meta charset="UTF-8">
<!-- Form to get user input, using the post method -->
<form method="post" action="">
<p>a: <input type="number" name="a"></p>
<p>b: <input type="number" name="b"></p>
<p>c: <input type="number" name="c"></p>
<p><input type="submit"></p>
</form>
@eugenelee0420
eugenelee0420 / shared_warframe_installation.md
Last active April 23, 2017 11:40
Guide on how to share a single Warframe installation with windows file sharing.

Share a Warframe Installation

Introduction

This guide will help you run Warframe on multiple PCs simultaneously, but only with one copy of Warframe. Very useful for a LAN situation.

You will require a copy of Warframe, and all the PCs must be on a same LAN network.

NOTE: For simplicity, I will refer the computer that HAVE Waframe "source PC" and the computer that DO NOT have Warframe "target PC".