This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AOP = require("./aop.js") | |
class MyBussinessLogic { | |
add(a, b) { | |
console.log("Calling add") | |
return a + b | |
} | |
concat(a, b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[-] 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123contactform | |
abacus | |
acquia | |
activecampaign | |
adobe | |
aerofs | |
airbnb | |
amazon | |
ancile | |
appcelerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wifi Credentials | |
const WIFI_NAME = "YOURSSID"; | |
const WIFI_PASS = "YOURPASS"; | |
// Your location latitude and longitude | |
const lat = 'YOURLAT'; | |
const lon = 'YOURLON'; | |
// Required libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder