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
.counter-corner__counter { | |
position: relative; | |
color: #000; | |
font-weight: bold; | |
} | |
.counter-corner__counter:before { | |
content: attr(title); | |
color: transparent; | |
position: absolute; |
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
.ps-container .ps-scrollbar-y { | |
position: absolute; /* please don't change 'position' */ | |
right: 14px; /* there must be 'right' for ps-scrollbar-y */ | |
width: 8px; | |
background-color: #00aeef; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; | |
opacity: 0; | |
filter: alpha(opacity = 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
.flash-wrap{ | |
position: relative; | |
} | |
.flash-link{ | |
position: absolute; top:0px; left:0px; | |
width:180px; /*Flash Size*/ | |
height:220px; | |
/*background: url('images/0.gif') no-repeat;*/ /*You should uncommented this line for support old IE version.*/ | |
} |
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
if (!current_user_can('edit_others_posts')) { | |
$redirect_to = get_option('home'); | |
wp_redirect($redirect_to,302); | |
} |
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($){ | |
$('#bulk-edit .inline-edit-col-right .inline-edit-col') | |
.append( | |
'<label><span class="title">Date</span></label>' | |
+'<div class="inline-edit-date">' | |
+'<div class="timestamp-wrap"><select name="mm">' | |
+'<option value="00">Select</option>' | |
+'<option value="01">01-Jan</option>' | |
+'<option value="02">02-Feb</option>' | |
+'<option value="03">03-Mar</option>' |
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
alias chrome-local='open /Applications/Google\ Chrome.app --args --allow-file-access-from-files' |
NewerOlder