- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service.notifications | |
.create({ | |
toBinding: bindings, | |
body: message, | |
sms: { | |
status_callback: 'https://peppernet.serveo.net/admin/twilio/status/1' | |
} | |
}) | |
.then((notification) => { | |
console.log('Notify: ', notification.sid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateUsername(username){ | |
let u = Meteor.users.findOne({ username }); | |
let n=0; | |
let uname=username; | |
while(u){ | |
n++; | |
uname = username+n; | |
u = Meteor.users.findOne({ username:uname }); | |
} | |
return uname; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : "6YvWEPbxzcNzjKEag", | |
"incoming_qty" : 0, | |
"standard_price" : 12.41, | |
"write_uid" : [ | |
5, | |
"Malik" | |
], | |
"display_name" : "ZYRTEC DROPS 10ML", | |
"item_ids" : [ ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product: { | |
id: 1, | |
title: "ProductTitle", | |
supplierID: 1, | |
_last_change: "29.29.16" | |
} | |
supplier: { | |
id: 1, | |
title: "SupplierTItle", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertedImage_save_meta($post_id) { | |
$upPost = get_post($post_id); | |
$rawPostDoc = new DOMDocument(); | |
@$rawPostDoc->loadHTML($upPost->post_content); | |
$imgs = $rawPostDoc->getElementsByTagName('img'); | |
foreach($imgs as $img){ | |
$imgIDStr = substr($img->getAttribute('class'), (stripos($img->getAttribute('class'),'wp-image-')+9), 8); | |
$imgID = preg_replace("[^0-9]", '', $imgIDStr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php | |
$doc = new DOMDocument(); | |
@$doc->loadHTML($post->post_content); | |
$tags = $doc->getElementsByTagName('img'); | |
foreach ($tags as $tag) { | |
echo '<li>'.$tag->getAttribute('src').'</li>'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get fractional value (104.222px) | |
Element.getBoundingClientRect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.videoWrapper { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 25px; | |
height: 0; | |
} | |
.videoWrapper iframe { | |
position: absolute; | |
top: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = 123456; | |
n.toLocaleString; | |
// 123,456 |
NewerOlder