Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan RUJodan

View GitHub Profile
View workout and diet
1:
Arms/Shoulders (triceps, biceps).
30 minutes cardio (or 3 miles, which ever takes longer)
Pullup set (assisted if you can't do real pullups) 5 reps * 3 (repeat for at least 3 different grip variations)
Tricep dips (assisted if needed, otherwise use machine)
Shoulder press, etc
Add in whatever arms you like here
End with burn outs
View AuthComponent.jsx
import React from 'react';
export async function isLoggedIn() {
const response = await fetch('/isLoggedIn', {
credentials : 'include'
});
const authenticated = await response.json();
return authenticated.loggedIn;
}
View Index.jsx
import React from 'react';
import {render} from 'react-dom';
import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'
//import jsx
import Login from './components/Login.jsx';
import Create from './components/Create.jsx';
import Index from './components/Index.jsx';
import './index.scss';
View blackFriday.js
(() => {
[...document.getElementsByTagName('a')].forEach(x => x.addEventListener("mouseover", () => warnABrotha(x), false));
})();
function warnABrotha(x) {
if (x.href.includes("rebecca.blackfriday")) alert("it's friday");
}
@RUJodan
RUJodan / gist:cac7a60d1fca0a97b406
Created Sep 11, 2014
Rick Roll Link Detection
View gist:cac7a60d1fca0a97b406
(function() {
[].forEach.call(document.getElementsByTagName('a'), function(x) {
x.addEventListener("mouseover", function() { warnABrotha(x) }, false);
});
})();
function warnABrotha(x) {
if (x.href == "http://www.youtube.com/watch?v=dQw4w9WgXcQ") alert("rick roll imminent");
}
/* to do: find a way to detect link shorteners */
@RUJodan
RUJodan / dangerzone.js
Last active Aug 29, 2015
dangerzone.js
View dangerzone.js
/*
Using @Zirak's bot to generate an Archer themed command
Pings the user, and if they reply "WHAT?!" Caprica says "Danger Zone! back to them
lolz
*/
(function() {
"use strict";
bot.memory.save("roomKey");
You can’t perform that action at this time.