Skip to content

Instantly share code, notes, and snippets.

View javierarques's full-sized avatar

Javier javierarques

View GitHub Profile
@hkfoster
hkfoster / validation.js
Last active May 2, 2017 00:08
Native JS HTML5 form validation.
/**
* HTML5 Form Validation 0.0.1
* @author Kyle Foster (@hkfoster)
* @license MIT (http://www.opensource.org/licenses/mit-license.php/)
*/
var formValidation = ( function() {
var init = function() {
@jperl
jperl / gist:19d1322187b1756fe3e2
Created August 27, 2014 19:14
Grunt tasks to add and build crosswalk for cordova project using grunt shell
var crosswalk = {
folder: {
arm: 'tools/crosswalk-cordova-7.36.154.13-arm',
x86: 'tools/crosswalk-cordova-7.36.154.13-x86'
}
};
// https://crosswalk-project.org/#documentation/cordova/migrate_an_application
var addCrosswalk = {
command: [
@jazzsequence
jazzsequence / ps-demo-plugin.php
Created May 24, 2013 23:06
Demonstration plugin for my Introduction to WordPress Plugin Development course for Pluralsight. Download the full source here: http://cl.ly/3u153a2N1v32
<?php
/*
Plugin Name: Pluralsight plugin development demo
Description: This is a demonstration plugin for the Introduction to WordPress Plugin Development course on Pluralsight.
Author: Chris Reynolds
Version: 1.0
*/
function ps_plugindev_options_page() {
?>
@smeranda
smeranda / facebook_like-box_responsive.css
Created May 1, 2012 20:37
Flexible width layout for Facebook Like Box/Activity Stream to use in Responsive Designs
/*
Make the Facebook Like box responsive (fluid width)
https://developers.facebook.com/docs/reference/plugins/like-box/
*/
/* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */
#fb-root {
display: none;
}