Install phantomJS:
[sudo] npm install -g phantom
Create a /tests folder into your Meteor app:
cd [app folder] && mkdir tests && cd tests
(function($) { | |
$.extend($.expr[":"], { | |
data: function(current, index, match, stack) { | |
for (var i = 0, attrs = current.attributes, l = attrs.length; i < l; i++) { | |
if((/\bdata-/g).test(attrs.item(i).nodeName)) return true; | |
} | |
return false; | |
} | |
}) |
rivets.binders.text = (function() { | |
var handler = function(e) { | |
return rivets.config.adapter.publish(e.data.model, e.data.keypath, $(e.currentTarget).text()); | |
} | |
var binding = { | |
publishes: true, | |
bind: function(el) { | |
return $(el).on("blur", null, this, handler); | |
}, |
@mixin tooltip($background, $borderColor) { | |
position: relative; | |
background: $background; | |
border: 1px solid $borderColor; | |
&:after { | |
content: ""; | |
display: block; | |
position: absolute; | |
left: 50%; |
#!/bin/bash | |
# ================ | |
# Injection checks | |
# ================ | |
notices[0]=".php files in /uploads" | |
checks[0]="find ./wp-content/uploads -type f -name \"*.php\"" | |
notices[1]="'bin/perl'" |
('Abkhazia', 'Abkhazian', 'Abkhazians'); | |
('Afghanistan', 'Afghan', 'Afghans'); | |
('Albania', 'Albanian', 'Albanians'); | |
('Algeria', 'Algerian', 'Algerians'); | |
('American Samoa', 'American Samoan', 'American Samoans'); | |
('Andorra', 'Andorran', 'Andorrans'); | |
('Angola', 'Angolan', 'Angolans'); | |
('Anguilla', 'Anguillan', 'Anguillans'); | |
('Antigua and Barbuda', 'Antiguan', 'Antiguans'); | |
('Argentina', 'Argentinian', 'Argentinians'); |
/* ------------------------------------------------------------- | |
Sass CSS3 Mixins! The Cross-Browser CSS3 Sass Library | |
By: Matthieu Aussaguel, http://www.mynameismatthieu.com, @matthieu_tweets | |
List of CSS3 Sass Mixins File to be @imported and @included as you need | |
The purpose of this library is to facilitate the use of CSS3 on different browsers avoiding HARD TO READ and NEVER | |
ENDING css files | |
note: All CSS3 Properties are being supported by Safari 5 |
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
// Programma di esempio: | |
// * Apri una finestra | |
// * Ascolta l'evento "quit" di SDL | |
// * Crea un renderer | |
// * Carica una bitmap da un percorso | |
// * Crea una texture dalla bitmap | |
// * Disegna la texture sul renderer | |
#include <SDL2/SDL.h> | |
#include <SDL2_image/SDL_image.h> |