Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View glennlopez's full-sized avatar
🐝
Busy w/ moving.. be back soon

Glenn Lopez glennlopez

🐝
Busy w/ moving.. be back soon
  • CAE: Defence & Security
  • Canada
  • 04:15 (UTC -05:00)
View GitHub Profile
https://u.pcloud.com/#page=puplink&code=Qra7ZIkQrwL1RqW0qswAb2vwzXkhHFFik
https://u.pcloud.link/publink/show?code=kZ1eWMVZyPocEzNTWUkKEvmsSMxVpR2K5M9X
https://gist.github.com/glennlopez/e19e332df0cd0c945b0485ef960e22e5
@glennlopez
glennlopez / index.html
Created February 23, 2023 03:54
Success Message Transition
<div class="loader abs tl"><!-- Loading --></div>
<div class="container abs">
<h1>Awesome!</h1>
<h3>Your pills are on their way.</h3>
</div>
{
"yts": {
"name": "YTS",
"enabled": true,
"languages": [
"en"
],
"base_url": "https://web.archive.org/web/20200918213200/https://yts.am",
"fallback_urls": [
"https://web.archive.org/web/20200918213200/https://yts.pm",
@glennlopez
glennlopez / main.ino
Created September 25, 2021 22:59
PIR Assisted Mouse Ider
#include <Mouse.h>
int LED = 13; // the pin that the LED is atteched to
int PIR = 3; // the pin that the sensor is atteched to
void setup() {
pinMode(LED, OUTPUT); // initalize LED as an output
pinMode(PIR, INPUT); // initialize sensor as an input
Serial.begin(9600); // initialize serial
@glennlopez
glennlopez / ArduinoMouse.ino
Last active May 11, 2023 06:25
VR Helper for Shadow PC (Hardware solution)
/*
Keeps your local and cloud computer or mobile device awake by
turning your arduino/teensy into a hardware mouse
*/
#include <Mouse.h>
void setup() { } // no setup needed
void loop() {
int start = random(700, 9000);
@glennlopez
glennlopez / For Mac 4.2.6 unlimited trial.md
Created December 2, 2020 06:09 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@glennlopez
glennlopez / For Mac 4.2.6 unlimited trial.md
Created December 2, 2020 06:09 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
/// <summary>
/// Datestamp_demo
/// </summary>
/// <returns>formatted date as per user configuration</returns>
public static string formatedDate(string usrFormat)
{
StringBuilder simplifiedDateFormat = new StringBuilder("");
// simplify date formatting usrFormat
int index = 0;
@glennlopez
glennlopez / main.c
Created March 18, 2020 20:26
working
// Libs and header files
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <Adafruit_MotorShield.h>
#include <Servo.h>
#include <Arduino.h>
// GPIO Pin Definition
#define redpin 3 // PWM GPIO - RGBLED
#define greenpin 5 // PWM GPIO - RGBLED
#include <stdio.h>
#include <cs50.h>
/*
This program takes a user input get_string
and copy it into heap memory
*/
int main(){
int usrStr_size = 0;