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
#!/bin/bash | |
while true; do | |
begin=`date +%s` | |
curl GET http://127.0.0.1/getmovieposter | |
end=`date +%s` | |
if [ $(($end - $begin)) -lt 5 ]; then | |
sleep $(($begin + 5 - $end)) | |
fi |
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
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#!?&//=]+)', | |
'<a href="\\1" target="_blank">\\1</a>', $text); | |
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#!?&//=]+)', | |
'\\1<a href="http://\\2" target="_blank">\\2</a>', $text); | |
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', | |
'<a href="mailto:\\1">\\1</a>', $text); |
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
<?php | |
$camp_milestone_3 = 'three'; | |
$camp_milestone_4 = 'four'; | |
$three = 3; | |
$four = 4; | |
$third = $camp_milestone_.$three; | |
$fourth = $camp_milestone_.$four; |
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
<script src="https://d3js.org/d3.v3.min.js"></script> | |
<script src="/assets/js/d3/d3.layout.js"></script> | |
<script type="text/javascript"> | |
var m = [20, 120, 20, 120], | |
w = 1280 - m[1] - m[3], | |
h = 800 - m[0] - m[2], | |
i = 0, | |
root; |
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
<?php | |
//Options | |
$token = 'YOUR_TOKEN_HERE'; | |
$domain = 'YOUR_SLACK_DOMAIN_GOES_HERE'; | |
$channel = '#general'; | |
$bot_name = 'Webhook'; | |
$icon = ':alien:'; | |
$message = 'Your message'; |
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
{ | |
"name": "triberr/triberr", | |
"description": "Influencer marketing network", | |
"keywords": [], | |
"license": "MIT", | |
"type": "project", | |
"require": { | |
"php": ">=5.5.9", | |
"illuminate/database": "^5.2", | |
"nesbot/carbon": "^1.21", |
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
$('.quantity-plus').click(function () { | |
var total = parseFloat($('.total').html()).toFixed(2); | |
console.log('total ' + total); | |
var info = $(this).data('info'); | |
var id = info.item_id; | |
var price = info.price; | |
var quantity = $('#quantity-' + id).val(); | |
quantity = parseInt(quantity) + 1; | |
total += price; | |
var currentTotal = parseFloat(quantity * price).toFixed(2); |
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
$settings = Setting::get(); | |
foreach ($settings as $setting) { | |
View::share($setting->key, $setting->value); | |
} |
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
this is in my inventory.js file | |
inputFieldOnChangeHandler = (event) => { | |
this.props.dispatch(updateAvailability(event.target.value, this.props.params.facilityId)); | |
this.props.dispatch(getAvailability(this.props.params.facilityId)); | |
}; | |
<InventoryTableComponent |
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
const table = (props) => { | |
return ( | |
<table className="customeTable tableInventory"> | |
<TableHead/> | |
<tbody className="admin-list-table-body"> | |
{props.dayNames.map((index, value) => { | |
return (<tr className="rowClickable" key={value}> | |
<th className="table_head" key={value}>{moment().format('YYYY-MM-DD') === index ? 'Today' : moment(index).format('dddd')}</th> | |
{[...Array(24).keys()].map((i) => { | |
return (<td className="tableCells" key={i}> |
OlderNewer