Skip to content

Instantly share code, notes, and snippets.

View SergioCrisostomo's full-sized avatar

Sergio Crisostomo SergioCrisostomo

View GitHub Profile
#!/bin/bash
# Setup and start Sauce Connect for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
# SAUCE_USERNAME
# SAUCE_ACCESS_KEY
# Follow the steps at https://saucelabs.com/opensource/travis to set that up.
#
# Curl and run this script as part of your .travis.yml before_script section:
# before_script:
/**
* Sinon.JS 1.8.3, 2014/03/04
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
define(['jquery', 'text!some_template.html'], function($, html) {
// this will not work: window.__html__ will be undefined!
// var html = window.__html__['/base/some_template.html'];
/**
* Test case:
* Let requirejs-text load the assets.
*/
describe('It', function() {

saw this artcile quoting 10 reasons why jquery is better than mootools. source: http://www.jquery4u.com/articles/jquery-mootools/

jQuery has better mobile support than Mootools – the latest release of jQuery Mobile Alpha 3 has been a breakthrough in how easy it can be to get your website “mobile efficient”. Mootools has mobile support including touch events but it’s not as widely available as jQuery options. (#1 was Previously jQuery vs Mootools filesizes).

not true. see http://moobilejs.com/

jQuery is less confusing than Mootools! – It has less native extensions (including element) – jQuery has about a dozen for Array, Object, and String and Mootools has about six dozen for Array, Object, String, Function, and Number.

how is less power and methods a good thing? the reason why mootools has more native methods is because it also shims browsers that lack ES5 functionality for all the natives that it extends. if anything, this goes against jquery.

<?php
success: function (resposta) {
resposta = JSON.parse(resposta);
console.log(resposta);
if (resposta[0]) paraRemover.each(function(){
this.tr.remove();
}
alert(resposta[1]);
}
/*
---
name: Slick.Finder
description: The new, superfast css selector engine.
provides: Slick.Finder
requires: Slick.Parser
...
*/
(function(){
/*
---
name: Slick.Finder
description: The new, superfast css selector engine.
provides: Slick.Finder
requires: Slick.Parser
...
*/
(function(){
@SergioCrisostomo
SergioCrisostomo / transform.js
Last active September 7, 2015 20:06 — forked from kentaromiura/transform.js
MooTools Class to ES 2015
module.exports = function(file, api) {
var j = api.jscodeshift;
var root = j(file.source);
root.find(j.Identifier).forEach(function(p) {
if(p.value.name === 'Class') {
if(p.parentPath.name === 'init'){
var classDefinition = p.parentPath.value.arguments[0];
var varname = p.parentPath.parentPath;
var name = varname.value.id;
var target = varname.parentPath.parentPath
function makeBody(to, from, subject, message) {
var btoa = require('btoa');
var str = ["Content-Type: text/plain; charset=\"UTF-8\"\n",
"MIME-Version: 1.0\n",
"Content-Transfer-Encoding: 7bit\n",
"to: ", to, "\n",
"from: ", from, "\n",
"subject: ", subject, "\n\n",
message
].join('');
@SergioCrisostomo
SergioCrisostomo / edge.md
Last active January 2, 2016 19:19 — forked from anutron/edge.md

Introducing MooTools Edge: The Community Edition of MooTools

Ever since its launch way back in 2006 MooTools, like most other open source projects, has been the product of the hard work of the people who use it. We, the users of the framework, shaped it into the stable, compact, highly useful suite of tools that helped change the way the web worked.

Over time, the project managed to solve most of the problems that its creators set out to solve. As the original team moved through various careers, always giving time to MooTools, the project matured and browsers got better.

MooTools 1.5, or Why Stable Doesn't Mean Dead

It's been nearly a year since the last release of MooTools Core. Today we're releasing MooTools 1.5 which contains roughly 75 commits, most of which are minor bug fixes.