Skip to content

Instantly share code, notes, and snippets.

a[data-test-folder-name] {
padding: 5px 9px !important;
}
div[data-test-folder-container] {
padding: 0 !important;
margin: 0 !important;
height: auto !important;
border: 0 !important;
}
const SELECTOR = '.share-tools'
class SocialTools {
constructor() {
}
/**
* Get an array of instances for this Module.
* @return {Object[]}
[
{
"settings": ["master"],
"sources": {
"abc": {
"link":"http://au.rd.yahoo.com/headlines/cobrand/SIG=111a6vs9n/**http%3A%2F%2Fwww.abc.net.au%2F",
"img":"https://s.yimg.com/ao/i/nws/abc_logo_horizontal.png"
},
"aap": {
"link":"http://au.news.yahoo.com/a/-/copyright/5071049/aap-copyright-notice/",
var startTime = new Date();
function dateFormat(timestamp, currentDateFormat, timeSinceFormat) {
// Format string timestamps to enforce a number unless it's not passed
// as a human readable format. Ex: '1484897633537'.
timestamp = isNaN(Number(timestamp)) ? timestamp : Number(timestamp);
// Month and weekdays
let listMonths = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
@rafaelfaria
rafaelfaria / dateformat.js
Created January 22, 2017 22:44
dateFormat
var startTime = new Date();
function dateFormat(timestamp, past, in24Hours) {
timestamp = isNaN(Number(timestamp)) ? timestamp : Number(timestamp);
let formatedString = '';
let listMonths = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
@rafaelfaria
rafaelfaria / A0CAPABILITY
Created July 30, 2012 08:35
openssl A0 CAPABILITY
sydim114:Desktop cardosor$ openssl s_client -quiet -connect mail.mycompany.com.au:443
depth=1 /C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/CN=USERTrust Legacy Secure Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
A0 CAPABILITY
HTTP/1.1 400 Bad Request ( The data is invalid. )
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
@rafaelfaria
rafaelfaria / openssl
Created July 30, 2012 08:18
openssl to exchange server
sydim114:~ cardosor$ openssl s_client -quiet -connect mail.mycompany.com.au:443
depth=1 /C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/CN=USERTrust Legacy Secure Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
@rafaelfaria
rafaelfaria / options
Created July 30, 2012 07:58
imap connections options
Social server listening on port 3000 in development mode
{ username: 'mcscardosor',
password: '************',
host: 'mail.xxxxxxx.com.au',
port: 443,
secure: true,
connTimeout: 10000,
debug: [Function] }
Connected to host.