Skip to content

Instantly share code, notes, and snippets.

View adelriosantiago's full-sized avatar
🏠
Working from home

Alejandro del Rio Santiago adelriosantiago

🏠
Working from home
View GitHub Profile
Awards: 💎🏆⚜️💯❤️🌟🏁🚩🥇🥈🥉✔️🔴🟡🔵⚪🔹◾
Name (@handle): ◾
#
# Water
#
Shader "Unlit/Shader1"
{
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
@adelriosantiago
adelriosantiago / sample-data
Created November 6, 2020 23:44
sample-data
signal,n
signal1,5
signal1,9
signal1,5
signal1,1
signal1,3
signal1,5
signal2,5
signal2,5
signal2,4
Angels and ministers of grace defend us!
Be thou a spirit of health or goblin damn'd,
Bring with thee airs from heaven or blasts from hell,
Be thy intents wicked or charitable,
Thou comest in such a questionable shape
That I will speak to thee: I'll call thee Hamlet,
King, father, royal Dane: O, answer me!
Let me not burst in ignorance; but tell
Why thy canonized bones, hearsed in death,
Have burst their cerements; why the sepulchre,
@adelriosantiago
adelriosantiago / data-html
Last active November 13, 2019 19:21
raw-twitter-market-data
Dr Boyce Watkins
@drboycewatkins1
Nov 8
More
A lot of people believe they are experts at #stockmarket investing because they have been making a ton of money. The truth is that nearly EVERYONE has been making a ton of money for the last decade. It won’t be this way forever.
2 replies6 retweets38 likes
Reply 2 Retweet 6 Like 38
@adelriosantiago
adelriosantiago / raw-github-data.html
Created November 13, 2019 18:37
raw-github-data-to-parse
<div>
<article class="Box-row">
<div class="float-right">
<div class="js-toggler-container js-social-container starring-container ">
<!-- '"` --><!-- </textarea></xmp> --><form class="starred js-social-form" action="/async-rs/async-std/unstar" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="authenticity_token" value="puE8OBuELjEsuyAsKdKhKY3tZt1l/4j8yEIZRZ07tFQphnab26uD+iOfximoK7VMwq3xdXwXjZkVE7H4TkoPkQ==">
<input type="hidden" name="context" value="trending">
<button type="submit" class="btn btn-sm js-toggler-target" aria-label="Unstar this repository" title="Unstar async-rs/async-std" data-ga-click="Repository, click unstar button, action:trending#index; text:Unstar"> <svg class="octicon octicon-star v-align-text-bottom" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"></pat
//Fast-diff library (https://github.com/jhchen/fast-diff)
var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0;function diff_main(n,r,t){if(n==r)return n?[[DIFF_EQUAL,n]]:[];(t<0||n.length<t)&&(t=null);var i=diff_commonPrefix(n,r),e=n.substring(0,i);i=diff_commonSuffix(n=n.substring(i),r=r.substring(i));var f=n.substring(n.length-i),s=diff_compute_(n=n.substring(0,n.length-i),r=r.substring(0,r.length-i));return e&&s.unshift([DIFF_EQUAL,e]),f&&s.push([DIFF_EQUAL,f]),diff_cleanupMerge(s),null!=t&&(s=fix_cursor(s,t)),s=fix_emoji(s)}function diff_compute_(n,r){var t;if(!n)return[[DIFF_INSERT,r]];if(!r)return[[DIFF_DELETE,n]];var i=n.length>r.length?n:r,e=n.length>r.length?r:n,f=i.indexOf(e);if(-1!=f)return t=[[DIFF_INSERT,i.substring(0,f)],[DIFF_EQUAL,e],[DIFF_INSERT,i.substring(f+e.length)]],n.length>r.length&&(t[0][0]=t[2][0]=DIFF_DELETE),t;if(1==e.length)return[[DIFF_DELETE,n],[DIFF_INSERT,r]];var s=diff_halfMatch_(n,r);if(s){var l=s[0],u=s[1],g=s[2],h=s[3],_=s[4],c=diff_main(l,g),F=diff_main(u,h);return c.concat([[D
@adelriosantiago
adelriosantiago / get-whatsapp-audios.md
Last active January 23, 2024 12:47
Javascript code to download all audios from a Whatsapp chat

Javascript code to download all audios from a Whatsapp chat

Open a new browser console (F12) in the Whatsapp Web chat room and run this code to download all available audios.

var prefix = "download";

function pad_with_zeroes(number, length) {
    var my_string = '' + number;
    while (my_string.length < length) {
@adelriosantiago
adelriosantiago / basic.css
Last active April 18, 2018 03:01
CSS useful basic rules
/* Debug mode */
/* * { border: 1px solid red; } */
/* Positions */
.abs { position: absolute; }
.rel { position: relative; }
/* Text locations */
.t-c { text-align: center; }
@adelriosantiago
adelriosantiago / keystrokes-win.py
Created February 6, 2016 21:34
Python simulate keystrokes on Windows
from win32api import keybd_event
import time
import random
Combs = {
'A': [
'SHIFT',
'a'],
'B': [
'SHIFT',