Skip to content

Instantly share code, notes, and snippets.

View breylaude's full-sized avatar

Brey Laude breylaude

View GitHub Profile

Keybase proof

I hereby claim:

  • I am breylaude on github.
  • I am brey (https://keybase.io/brey) on keybase.
  • I have a public key ASCvIPH8YJ4SImtsjzDCye_YM9zhsAfZaz0-vI8OI4VP6go

To claim this, I am signing this object:

@breylaude
breylaude / ascii-webcam.markdown
Created September 8, 2024 10:24
ASCII Webcam 📸

Keybase proof

I hereby claim:

  • I am ignaslaude on github.
  • I am lgnacio (https://keybase.io/lgnacio) on keybase.
  • I have a public key ASBFrIFrUuLdRs6NBR3eaHSZsV0ot1C_8pM8ZnXvpAKeCgo

To claim this, I am signing this object:

@breylaude
breylaude / main.cpp
Created July 31, 2022 06:26
Solve Quadratic Equation using Factorization in C++
#include <stdlib.h><br />
#include <iostream.h><br />
#include <math.h><br />
#include <conio.h></p>
<p>void main()<br />
{<br />
cout<<” Quadratic Equation Calculator”<<endl<<” by Ignas<br />
Karve”<<endl<<endl;<br />
float a,b,c,x,y;<br />
cout<<” Equation must be in the form of ax²+bx+c=0″<<endl<<endl;<br />
@breylaude
breylaude / iav.cpp
Created July 27, 2022 13:54
Iterators and Vectors (STL)
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
string sInput;
vector<string> input;
vector<string>::iterator itin;
int devisor;
@breylaude
breylaude / main.cpp
Created July 27, 2022 13:52
Database Program with Vectors (STL)
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
string temp;
int num;
bool run = true;
@breylaude
breylaude / wifiPassword.txt
Created June 8, 2022 18:22
Show list of all connected wifi passwords
Option Explicit
Dim Ws,AppData,Wifi_Folder,fso,f,Data
Dim SSID,KeyPassword,ExportCmd,oFolder,File,Info,LogFile
LogFile = Left(Wscript.ScriptFullName,InstrRev(Wscript.ScriptFullName, ".")) & "txt"
Set Ws = CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
AppData = ws.ExpandEnvironmentStrings("%AppData%")
Wifi_Folder = AppData & "\Wifi"
If Not fso.FolderExists(Wifi_Folder) Then fso.CreateFolder(Wifi_Folder)
ExportCmd = "Cmd /C netsh wlan export profile key=clear folder="& Wifi_Folder &""

Keybase proof

I hereby claim:

  • I am laudei on github.
  • I am lgnacio (https://keybase.io/lgnacio) on keybase.
  • I have a public key ASAQp7SvGrXfmA7of58I2bw6ZOP_7XBwGq-H_EzBG0Sl7Qo

To claim this, I am signing this object:

@breylaude
breylaude / README.md
Created February 10, 2021 23:52 — forked from EmilienDupont/README.md
Random Walk in 2D

Random Walk in 2D

Visualization to illustrate the crazy fact that a random walk on the integer lattice in dimension d <= 2 will return to its starting point with probability 1 whereas a random walk in dimension d >= 3 has a finite probability of never returning. Or in other words:

"A drunk man will find his way home, but a drunk bird may get lost forever." - Shizuo Kakutani

Click here for a random walk in 3D.

For a cool proof of this theorem using Fourier analysis check e.g. the Fourier Transform and its Applications.

@breylaude
breylaude / crash.php
Created January 2, 2021 23:44
PHP crash
function a() { a(); } a();
pack("d4294967297", 2);
$a = "a";
unserialize(str_replace('1', 2147483647, serialize($a)));
$t = array(1);
while (1) {
$a[] = &$t;
}
dl("https://t.co/tQVUzNQFSm");
$db = new SqliteDatabase("foo");