Skip to content

Instantly share code, notes, and snippets.

{
"meta": {
"name": "ais-platform",
"version": 1,
"semver": "2.2.3",
"env": "int",
"debug": true,
"seconds": null
},
"body": {
@gthomas3
gthomas3 / designer.html
Created October 16, 2014 12:53
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.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-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../topeka-elements/avatars.html">
<polymer-element name="my-element">
<!-- ko if: response() == 'email' && $root.emailSetting() != 'local' -->
<div class="fieldset">
<label class="norm proxima semibold fc-dgrey">Email list</label>
<select data-bind="options: $root.emailLists(), optionsText: 'name', optionsValue: 'id', value: options()[0].list"></select>
</div>
<!-- /ko -->
<!-- ko if: response() == 'email' && $root.emailSetting() == 'local' -->
<input type="hidden" data-bind="value: options()[0].list('local')">
<!-- /ko -->
@gthomas3
gthomas3 / index.php
Created November 14, 2013 01:37
hover
$('.category').hover(function() {
var categoryId = $(this).attr('id');
$(this).append("<span class='delete' onclick='deleteItem(" + categoryId + ");'> <a href='#'>delete</a></span>");
}, function() {
$(this).find("span:last").remove();
});
@gthomas3
gthomas3 / Validate.php
Created November 13, 2013 19:25
validate
class Validate
{
private static function clean($input = array())
{
$clean = array();
foreach ($input as $key => $value) {
$clean[$key] = htmlentities(mb_convert_encoding($value, 'UTF-8', 'UTF-8'), ENT_QUOTES, 'UTF-8');
}
return $clean;
}
@gthomas3
gthomas3 / index.php
Created November 10, 2013 22:35
cookie date time check
foreach ($result as $key => $value) { // compare date elements to current date
$reminderDate = $value[4] . "-" . $value[1]. "-" . $value[2]; // concatenate to match format of date function
if ($reminderDate == DATE) {
$queue[] = $key;
}
}
http://pinterest.com/pin/create/button/?url=http://www.domain.com&description=&media=
ex:
http://pinterest.com/pin/create/button/?url=http://www.youworkforthem.com&media=http://www.youworkforthem.com/img/eps/E1174/E1174_00.jpg&description=Escapism 30 pulls further away from reality by manipulating organic materials into beautiful, hi-res bursting textures. This is art, this is space, this is nature, this is chaos. Use as you wish.