Skip to content

Instantly share code, notes, and snippets.

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

Josué Acevedo (Neomatrix) neomatrixcode

🏠
Working from home
View GitHub Profile
const AOP = require("./aop.js")
class MyBussinessLogic {
add(a, b) {
console.log("Calling add")
return a + b
}
concat(a, b) {
/** Helping function used to get all methods of an object */
const getMethods = (obj) => Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(item => typeof obj[item] === 'function')
/** Replace the original method with a custom function that will call our aspect when the advice dictates */
function replaceMethod(target, methodName, aspect, advice) {
const originalCode = target[methodName]
target[methodName] = (...args) => {
if(["before", "around"].includes(advice)) {
aspect.apply(target, args)
@neomatrixcode
neomatrixcode / fizzbuzz_4.jl
Created January 25, 2021 20:55 — forked from niczky12/fizzbuzz_4.jl
Fizzbuzz 4
function fizzbuzz(n)
numbers = 1:n
# first we convert the numbers to strings
result = string.(numbers)
result[rem.(numbers, 3) .== 0] .= "Fizz"
result[rem.(numbers, 5) .== 0] .= "Buzz"
result[(rem.(numbers, 3) .== 0) .* (rem.(numbers, 5) .== 0)] .= "FizzBuzz"
<font color="#8AE234">www.twitter.com</font>
<font color="#8AE234">0.twitter.com</font>
<font color="#8AE234">2010.twitter.com</font>
<font color="#8AE234">2011.twitter.com</font>
<font color="#8AE234">2012.twitter.com</font>
<font color="#8AE234">2013.twitter.com</font>
<font color="#8AE234">2014.twitter.com</font>
<font color="#8AE234">2015.twitter.com</font>
<font color="#8AE234">6nations.twitter.com</font>
[-] Total Unique Subdomains Found: 4889
na.ads.yahoo.com
ed.answers.yahoo.com
ca.answers.yahoo.com
au.news.yahoo.com
lo0.tor88-119-pdb.ne1.yahoo.com
advertising.yahoo.com
lo0.tor183-350-pdb.ne1.yahoo.com
hk.7-eleven.yahoo.com
scsd.msg.yahoo.com
www.google.com
alt.aspmx.1.google.com
client.1.google.com
clients.1.google.com
gmail-smtp-mas.1.google.com
misc-anycast.1.google.com
104-cache-blicnet.google.com
119-cache-blicnet.google.com
216-239-45-10.google.com
31.google.com
123contactform
abacus
acquia
activecampaign
adobe
aerofs
airbnb
amazon
ancile
appcelerator
// Wifi Credentials
const WIFI_NAME = "YOURSSID";
const WIFI_PASS = "YOURPASS";
// Your location latitude and longitude
const lat = 'YOURLAT';
const lon = 'YOURLON';
// Required libs
@neomatrixcode
neomatrixcode / .colores_ansi
Created August 3, 2018 19:00 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset