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 request = require('request'); | |
const smtp = '1.yoursmtp.smtp'; | |
const appkey = 'yourappkey'; | |
const secret = 'yoursecret'; | |
const options = { | |
method: 'POST', | |
url: 'https://api.emaillabs.net.pl/api/new_sendmail', | |
form: { |
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
// coursera NLP lesson 02.04 | |
// approximating number of syllables in a string | |
function countSyllables(s) { | |
'use strict'; | |
var k = 0; | |
if (s.length < 1) return k; | |
s = s.toLowerCase(); |
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
// Open the friends' list and paste the script to the browser's console | |
// Tested in Chrome | |
var buttons = document.querySelectorAll('li.fbProfileBrowserListItem .uiButton'); | |
for (var x = 0; x<buttons.length; x++) { | |
(function(num){ | |
buttons[num].click(); | |
}(x)) | |
} |
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 x = document.querySelectorAll('[alt="FRIEND NAME"]');for(var y = 0; y < x.length; y++) {x[y].setAttribute('src','http://www.szara-przystan.pl/wp-content/uploads/2014/02/dachowiec_kot_4.jpg');} |