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
<html> | |
<script type="text/javascript" src="https://files.coinmarketcap.com/static/widget/currency.js"></script> | |
<div class="coinmarketcap-currency-widget" data-currency="qtum" data-base="USD" data-secondary="BTC"></div> | |
<div class="coinmarketcap-currency-widget" data-currency="neo" data-base="USD" data-secondary="BTC"></div> | |
<div class="coinmarketcap-currency-widget" data-currency="ripple" data-base="USD" data-secondary="BTC"></div> | |
</html> |
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
g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgDhi6xEPq3WRyA97tTX2pXZWIhmdum0lCnIFAwGyE9EoKp3BheWxvYWTFAup7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMGUxOGJhYzQ0M2VhZGQ2NDcyMDNkZWVkNGQ3ZGE5NWQ5NTg4ODY2NzZlOWI0OTQyOWM4MTQwYzA2Yzg0ZjQ0YTBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMGUxOGJhYzQ0M2VhZGQ2NDcyMDNkZWVkNGQ3ZGE5NWQ5NTg4ODY2NzZlOWI0OTQyOWM4MTQwYzA2Yzg0ZjQ0YTBhIiwidWlkIjoiNWQ2MWZiYWUzZGVmMmVhNmEzYjU0ZmZlZDI5OTEzMTkiLCJ1c2VybmFtZSI6ImdzZGV2bWUifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJnc2Rldm1lIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjEzIn0sImN0aW1lIjoxNDYwOTg2ODQ5LCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0NjA5ODY3NzgsImhhc2giOiI4M2JjNDI0OTAxZjVkYjFlODRiYTMzNGMyMzIyZTUyYWQ5OTE0OGE4MDJlMGI3NjhiNmYyOWY1NDY3NTcyZTIyODBiOWE3NjUxZmU4NjE2NjQ0ODU4YjExMjI3MTRkNTBhOTlhZmMyZDcyODkyYWU4NjQ3YjBiZWQ1MzI2MmI1ZSIsInNlcW5vIjo0NDU1NjJ9LCJwcmV2IjoiNTUyYTk0YTFlODViYmNiZjEwY2YxNzMxYTM2ODYxYzE4ZjJl |
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 file was generated by Chef | |
# Do NOT modify this file by hand. | |
[ius] | |
name=IUS Community Packages for Enterprise Linux 6 - $basearch | |
enabled=1 | |
failovermethod=priority | |
gpgcheck=1 | |
gpgkey=https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY | |
mirrorlist=https://mirrors.iuscommunity.org/mirrorlist/?repo=ius-centos6&arch=$basearch&protocol=http |
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 file was generated by Chef | |
# Do NOT modify this file by hand. | |
[epel] | |
name=Extra Packages for Enterprise Linux 6 - $basearch | |
enabled=1 | |
failovermethod=priority | |
gpgcheck=1 | |
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 | |
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch |
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
#import the required modules | |
import RPi.GPIO as GPIO | |
import time | |
# set the pins numbering mode | |
GPIO.setmode(GPIO.BOARD) | |
# Select the GPIO pins used for the encoder K0-K3 data inputs | |
GPIO.setup(11, GPIO.OUT) | |
GPIO.setup(15, GPIO.OUT) |
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 | |
namespace Application; | |
use Zend\Mvc\MvcEvent; | |
class Module | |
{ | |
public function onBootstrap(MvcEvent $e) |
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 | |
require_once __DIR__ . '/WideImage/lib/WideImage.php'; | |
$image = WideImage::load(__DIR__ . '/product_1.jpg') | |
->resize(300,150,'outside') | |
->crop("center", "middle", 300, 150) | |
->saveToFile('ff.jpg'); |
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 | |
namespace Utilities; | |
class Hash | |
{ | |
const PASSWORD_STRENGTHENING = 50000; | |
/** |
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
Etag request headers | |
https://github.com/documentcloud/backbone/issues/284 |
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 section of code was taken from here | |
* http://de.60.5646.static.theplanet.com/samples/distance.php.html | |
*/ | |
function calcDistance($lat, $long2, $lat2, $long2, $unit='m') | |
{ | |
$theta = $lon1 - $lon2; | |
$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); | |
$dist = acos($dist); |