Skip to content

Instantly share code, notes, and snippets.

View microchipgnu's full-sized avatar
🖼️
µ

Luís Freitas microchipgnu

🖼️
µ
View GitHub Profile
🌞 Morning 221 commits ██▍░░░░░░░░░░░░░░░░░░ 11.9%
🌆 Daytime 689 commits ███████▊░░░░░░░░░░░░░ 37.1%
🌃 Evening 638 commits ███████▏░░░░░░░░░░░░░ 34.3%
🌙 Night 310 commits ███▌░░░░░░░░░░░░░░░░░ 16.7%
body{
font-family: 'Roboto', sans-serif;
text-shadow: 0px 0px 10px #00d2ff;
color: #fff;
font-size: 32px;
}
h1{
font-size: 52px;
}
body{
font-family: 'Roboto', sans-serif;
text-shadow: 0px 0px 10px #00d2ff;
color: #fff;
font-size: 32px;
}
h1{
font-size: 52px;
}
function done(){
document.getElementById('mainSurface').setAttribute('visible', false);
window.location.hash = '#slide1'
}
<div id="page1">
<h1>A-Frame HTML Embed Component</h1>
<p>HTML Embed is a component created for A-Frame. The HTML Embed component allows for arbitrary html to be inserted into your aframe scene. It allows you to update the display within A-Frame simply by manipulating the DOM as you normally would.
</p>
<p>
In addition to rendering the html to the A-Frame scene it allows for interaction. Most css pseudo selectors such as hover, active, focus and target should work with interactivity enabled without any modifications to your css. Mouse events can be attached to the html elements as usual. </p>
<a href="#slide2" class="button next">Next Page</a>
</div>

Clear all node_modules folders recursively

Testing concepts, building smalls apps and just brainstorming ideas led my computer to accumulate garbage very quickly. Clear your node_modules recursively by running this command.

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

Don't just trust me. Learn what it does:

  1. find . Instructs the find program to search for files in the current directory ..
  2. -name "node_modules" Instructs the find program to search for files named “node_modules”.
  3. -type d Instructs the find program to only look for file directories named “node_modules”.
@microchipgnu
microchipgnu / Reddit.md
Created September 13, 2019 13:26
Snippets of text that made me think

So we sit. Just sit. Because we’re all afraid if we—any of us—admit it, we lose everything. Our wages and healthcare and the rest of it is all tied to our labor. But what if we only have a few minutes or hours of actual labor per week? If your job is like mine, trying to create work from wholecloth is actually counterproductive. In that, you spend far more time and resources on the “make-work” that is far above the efficiencies already created at your job. So “work” becomes the play act of “working” like an actor on the stage. Most people honestly think this is what work is: the play act of working.

The answer is we must admit it. Now. This is a dangerous bubble of “human time” created by automation. If we don’t admit it soon, and start building an economic system and society 
@microchipgnu
microchipgnu / Risks, Rewards & Entrepreneur's Path.md
Created September 10, 2019 22:38
The best, most important and relevant quotes of my life (yet)

Credit to @acavaeiro

  1. “ I’ve rarely met an unhappy successful entrepreneur but I’ve met many unhappy successful executives of large companies and partners of consulting and banking firms. Your career should not only be fun, it should serve your life.”

  2. “[…] the operable question becomes “what set of risks canI best control?” I embrace the premise that one of our goals in life is to die young as late as possible.”

  3. “How does one prepare for an entrepreneurial career?

Well there are alternative approaches:

  1. Industry specific experience, if you have a clear idea what industry you want to go into, which is rare.
@microchipgnu
microchipgnu / ScreenRecorder.cs
Last active August 3, 2019 21:43
Record a Unity scene with your camera and combine screenshots into video.
using UnityEngine;
using System.Collections;
using System.IO;
// Screen Recorder will save individual images of active scene in any resolution and of a specific image format
// including raw, jpg, png, and ppm. Raw and PPM are the fastest image formats for saving.
//
// You can compile these images into a video using ffmpeg:
// ffmpeg -i screen_3840x2160_%d.ppm -y test.avi

Oculus Go VLC screencast

Windows over USB

adb exec-out "while true; do screenrecord --bit-rate=8m --output-format=h264 --time-limit 180 -; done" | "C:\Program Files\VideoLAN\VLC\vlc.exe" --demux h264 --h264-fps=60 --clock-jitter=0 --network-caching=100 --sout-mux-caching=100 -

For more information, visit this site.