This file contains hidden or 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 | |
// yourmodule/src/listeners/GetLinkitSchema.php | |
namespace modules\hshelpers\listeners; | |
use fruitstudios\linkit\base\Link; | |
use fruitstudios\linkit\models\Entry; | |
use markhuot\CraftQL\Types\EntryInterface; | |
use fruitstudios\linkit\fields\LinkitField; | |
use markhuot\CraftQL\Events\GetFieldSchema; |
This file contains hidden or 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
// Assuming this | |
.foo { | |
-webkit-transition: -webkit-transform 1s ease-out; | |
} | |
.foo:hover { | |
-webkit-transform: translateX(20px); | |
} | |
This file contains hidden or 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 | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, 'http://ws.audioscrobbler.com/2.0/?method=artist.getevents&artist=Josh+Harmony&api_key=d3fcabf421291d107802fce0fe2c2825&format=json'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); | |
$content = curl_exec($ch); | |
curl_close($ch); | |
$content = json_decode($content); | |
$events = $content->events; |