Skip to content

Instantly share code, notes, and snippets.

View web20opensource's full-sized avatar
🎯
Focusing

Mario Ruiz web20opensource

🎯
Focusing
View GitHub Profile
select
emailAddress
from [dataExtension]
where createdDate > convert(date, getDate()-30)
const RtmClient = require('@slack/client').RtmClient;
const MemoryDataStore = require('@slack/client').MemoryDataStore;
const RTM_EVENTS = require('@slack/client').RTM_EVENTS;
const token = process.env.SLACK_TOKEN || '';
const witAppId = process.env.WIT_APP_ID || '';
const witToken = process.env.WIT_ACCESS_TOKEN || '';
const {Wit, log} = require("node-wit");
const wit = new Wit({accessToken: witToken});
const RtmClient = require('@slack/client').RtmClient;
const MemoryDataStore = require('@slack/client').MemoryDataStore;
const RTM_EVENTS = require('@slack/client').RTM_EVENTS;
const token = process.env.SLACK_TOKEN || '';
const rtm = new RtmClient(token, {
logLevel: 'error',
// logLevel: 'debug',
// Initialise a data store for our client, this will load additional helper functions for the storing and retrieval of data
dataStore: new MemoryDataStore(),
/* Client-specific Styles */
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody {width:100%;} .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
body{width:100% !important; max-width: 640px !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; -webkit-font-smoothing: antialiased; margin: 0 auto; padding:0; background-color: #DFDDDB;}
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
img {outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic;}
a img {border:none;}
p {margin: 0px 0px !important;}
{'tree': {'ID': 1 , 'Label': 'A', 'childrenNodes': [ {'ID': 2, 'Label': 'B', 'childrenNodes': [ {'ID': 5, 'Label': 'E'}, {'ID': 6, 'Label': 'F'}, {'ID': 7, 'Label': 'G'} ]}, {'ID': 3, 'Label': 'C'}, {'ID': 4, 'Label': 'D', 'childrenNodes': [ {'ID': 8, 'Label': 'H'}, {'ID': 9, 'Label': 'I'} ]} ]} }
@web20opensource
web20opensource / coffeTesting4.html
Last active December 23, 2015 22:49
mootools + some js stuff for validate the list like a shopping food menu in a restaurant
<!DOCTYPE html>
<html>
<head>
<script src="http://mootools.net/download/get/mootools-core-1.4.5-full-compat-yc.js"></script>
<script src="coffee.js"></script>
<title></title>
<style>
*[id*="S1_98"]{
display:none;
}
@web20opensource
web20opensource / testDeleteme
Last active December 23, 2015 22:49
another mootools checkboxes adopted dynamically
/**
* Created with JetBrains WebStorm.
* User: mario.ruiz
* Date: 25/09/13
* Time: 08:59
* To change this template use File | Settings | File Templates.
*/
window.addEvent('domready', function() {
var isChecked = function(){
@web20opensource
web20opensource / coffeTesting4.html
Last active December 23, 2015 22:49
mootools magic checkbox input validation checked.
<!DOCTYPE html>
<html>
<head>
<script src="http://mootools.net/download/get/mootools-core-1.4.5-full-compat-yc.js"></script>
<script src="coffee.js"></script>
<title></title>
<style>
*[id*="S1_98"]{
display:none;
}
@web20opensource
web20opensource / coffeTesting4.html
Last active December 23, 2015 22:29
magical input checkbox mootools
<!DOCTYPE html>
<html>
<head>
<script src="http://mootools.net/download/get/mootools-core-1.4.5-full-compat-yc.js"></script>
<script src="coffee.js"></script>
<title></title>
<style>
*[id*="S1_98"]{
display:none;
}
@web20opensource
web20opensource / testDeleteme.js
Last active December 23, 2015 22:29
mootools moving DOM elements
/**
* Created with JetBrains WebStorm.
* User: mario.ruiz
* Date: 25/09/13
* Time: 08:59
* To change this template use File | Settings | File Templates.
*/
window.addEvent('domready', function() {
var isChecked = function(){