Skip to content

Instantly share code, notes, and snippets.

View web20opensource's full-sized avatar
🎯
Focusing

Mario Ruiz web20opensource

🎯
Focusing
View GitHub Profile
@web20opensource
web20opensource / gist:5410388
Created April 18, 2013 05:38
Is this a validated response about the last minutes from the video of Doug Crawford at mjg.in? http://frontendmasters.com/courses/javascript-the-good-parts/douglas-crockfords-function-challenges/
var add = function (add){ return add};
var mul = function (mul){ return mul};
var op = add || mul;
var applyf = function(op){
if ( op === add)
return function(x){
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<html>
<head>
<title>Test Suite</title>
<script>
function assert( value, desc ) {
var li = document.createElement("li");
li.className = value ? "pass" : "fail";
li.appendChild( document.createTextNode( desc ) );
document.getElementById("results").appendChild( li );
}
@web20opensource
web20opensource / testSuperHerojs11.js
Last active December 23, 2015 22:29
testing mootools (validation, checked, input, label)
/**
* Created with JetBrains WebStorm.
* User: mario.ruiz
* Date: 05/09/13
* Time: 15:31
* To change this template use File | Settings | File Templates.
*/
window.addEvent('domready', function() {
jQuery.noConflict();
@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(){
@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 / 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 / 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 + 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;
}