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
  • 20:31 (UTC -05:00)
View GitHub Profile
#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;
https://vubiz.com/Gold/vuSCORM/SCOContainer.aspx?vCustId=CCHS3E9Y&vMods_No=8388&vProg_No=3376&vMemb_No=2318853&vLang=EN&vModId=&SessionReturnURL=%2FV5%2FCode%2FRTE_MyContent.asp%3FvProgId%3DP2119EN%27%22&jumpto=&psi=&pei=
https://vubiz.com/Gold/vuSCORM/SCOContainer.aspx?vCustId=CCHS3E9Y&vMods_No=8389&vProg_No=3376&vMemb_No=2318853&vLang=EN&vModId=&SessionReturnURL=%2FV5%2FCode%2FRTE_MyContent.asp%3FvProgId%3DP2119EN%27%22&jumpto=&psi=&pei=
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 09:06
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 09:06
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 08:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 08:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / helpers.c
Created June 17, 2017 02:25
/r/cs50/comments/6hjd59/pset3_binary_search_help/
... //more code above this line
if(startPoint > endPoint){ //<-- startpoint is now larger than end point so I "break;" from the loop
break; //<-- prevents infinit loop
}
while(values[midPoint] != value); //<--- my sorting loop ends when it finds
//return results
if(startPoint > endPoint){ //<-- I know its false becuase startpoint is now larger than endpoint
return false; //<-- so I return a false
@glennlopez
glennlopez / gist:cd1002d77d97326c8cbecf03bdf97fb5
Created February 4, 2017 01:55
Node-RED: Twitter to LED/GPIO
[{"id":"510535b.362dfcc","type":"twitter in","z":"7e0c8120.747af","twitter":"","tags":"#led_on","user":"false","name":"Turn on LED","topic":"tweets","inputs":1,"x":210,"y":240,"wires":[["321abbf.2756544","e276dc38.61ca8"]]},{"id":"321abbf.2756544","type":"debug","z":"7e0c8120.747af","name":"","active":true,"console":"false","complete":"payload","x":430,"y":200,"wires":[]},{"id":"94e3eba9.439568","type":"rpi-gpio out","z":"7e0c8120.747af","name":"GPIO_24","pin":"18","set":"","level":"0","out":"out","x":620,"y":240,"wires":[]},{"id":"e276dc38.61ca8","type":"trigger","z":"7e0c8120.747af","op1":"1","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":440,"y":240,"wires":[["94e3eba9.439568"]]},{"id":"69c10cd7.373124","type":"twitter in","z":"7e0c8120.747af","twitter":"","tags":"#led_off","user":"false","name":"Turn off LED","topic":"tweets","inputs":1,"x":210,"y":360,"wires":[["5490063a.910e58","8cdab111.93f54"]]},{"id":"5490063a.910e58","type":"debug","z":
@glennlopez
glennlopez / raspberry-pi-vpn-router.md
Created December 11, 2016 01:05 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@glennlopez
glennlopez / openpgp.txt
Created August 15, 2016 17:13
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]