Skip to content

Instantly share code, notes, and snippets.

View skorytnicki's full-sized avatar

Szymon Korytnicki skorytnicki

View GitHub Profile
@skorytnicki
skorytnicki / sendmail.js
Last active November 29, 2022 14:19
EmailLabs Node.js integration
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: {
@skorytnicki
skorytnicki / countSyllables.js
Created July 18, 2016 21:14
Approximate the number of syllabes in the string
// 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();
@skorytnicki
skorytnicki / invite.js
Last active February 18, 2017 16:46
Inviting all facebook friends to like your fanpage
// 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))
}
@skorytnicki
skorytnicki / makeMessengerLovelyCat.js
Created March 9, 2016 11:30
Change friends' avatar on messenger
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');}