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
"MessagePosted": 1, | |
"MessageEdited": 2, | |
"UserEntered": 3, | |
"UserLeft": 4, | |
"RoomNameChanged": 5, | |
"MessageStarred": 6, | |
"DebugMessage": 7, | |
"UserMentioned": 8, | |
"MessageFlagged": 9, | |
"MessageDeleted": 10, |
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
.................................................. ............................... .......,-~~'''''''~~--,,_ | |
.................................................. ..................................,-~''-,:::::::::::::::::::''-, | |
.................................................. .............................,~''::::::::',::::::: :::::::::::::|', | |
.................................................. .............................|::::::,-~'''___''''~~--~''':} | |
.................................................. .............................'|:::::|: : : : : : : : : : : : : : :| | |
.................................................. .............................|:::::|: : :-~~---: : : -----: | | |
.................................................. ............................(_''~-': : : :o: : :|: :o: : : :| | |
.................................................. .............................'''~-,|: : : : : : ~---': : : :,'--NEVA GAHN | |
.................................................. .................................|,: : : : : :-~ |
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
//A scraper I wrote for the site - http://www.bluffton.edu/homepages/facstaff/nesterd/java/derivs.html | |
//I added some extra bits, like copying it straight to your clipboard because yeah. | |
var elements = []; | |
for (var i = 0; i < 5; i++) { | |
var object = { | |
"html": document.getElementById("display").getElementsByClassName("base")[0].outerHTML, | |
"text": document.getElementById("display").textContent.split("Enter as: ")[1] | |
} | |
elements.push(object); |
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
## declare an array variable | |
declare -a arr=("100003351194097", "1190589341", "100002607181556", "549728756", "759129034", "100015955369034"); | |
length="${#arr[@]}"; | |
# echo $length; | |
count=0; | |
for i in "${arr[@]}" | |
do | |
echo $(curl -sb -H "Accept: application/json" "https://graph.facebook.com/v2.8/"$i"?access_token=<API_TOKEN>" | jq -r '.name')","$i >> greetings.csv | |
((count++)); |
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
var s = '<button id="pastToggle" style="margin: 0 auto;display:block;">Show/Hide Past Hackathons</button>'; // HTML string | |
var div = document.createElement('div'); | |
div.innerHTML = s; | |
$('.row.feature').children().get(0).append(div); | |
$('#pastToggle').click(function() { | |
$('.event').each(function(item){ | |
var date = Date.parse($(this).find('meta[itemprop="endDate"]').attr('content')); | |
var currentTime = (new Date).getTime(); |
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
$('.q-item').each(function(index, entry){ | |
var item = $(entry).find('.form-field-body').find('ul').children().get(1); | |
if($(item).text().includes("Disapprove")){ | |
$(item).find('input').prop('checked', true); | |
} | |
}); |
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 onElementInserted(containerSelector, elementSelector, callback) { | |
var onMutationsObserved = function(mutations) { | |
mutations.forEach(function(mutation) { | |
if (mutation.addedNodes.length) { | |
var elements = $(mutation.addedNodes).find(elementSelector); | |
for (var i = 0, len = elements.length; i < len; i++) { | |
callback(elements[i]); | |
} | |
} |
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
var COLS = 26, ROWS = 26; | |
// IDs | |
var EMPTY = 0, SNAKE = 1, FRUIT = 2; | |
// Directions | |
var LEFT = 0, UP = 1, RIGHT = 2, DOWN = 3; | |
var grid = { | |
width: null, |
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
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+ |
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
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+ |