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 fitToScreen(selector) { | |
var element = document.querySelector(selector); | |
var width = element.offsetWidth; | |
var height = element.offsetHeight; | |
var top = "-" + (height / 2) + "px"; | |
var left = "-" + (width / 2) + "px"; | |
var ratio = getRatio(width, height); |
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 | |
$env = $app->detectEnvironment(function() { | |
// detect environment here | |
return "local"; | |
}); |
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 | |
// https://github.com/teepluss/laravel4-theme/blob/master/src/Teepluss/Theme/Theme.php#L714-L750 | |
class IndexController | |
extends BaseController | |
{ | |
public function indexAction() | |
{ | |
$foo = "bar"; |
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 Formativ\Theme; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Routing\Router; | |
use Illuminate\Support\ServiceProvider; | |
class ThemeServiceProvider | |
extends ServiceProvider |
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 Tricks\Providers; | |
use App; | |
use Mockery; | |
use TestCase; | |
class NavigationServiceProviderTest | |
extends TestCase |
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 Tricks\Providers; | |
use Tricks\Services\Social\Disqus; | |
use Tricks\Services\Social\Github; | |
use Illuminate\Support\ServiceProvider; | |
use Guzzle\Service\Client as GuzzleClient; | |
use League\OAuth2\Client\Provider\Github as GithubProvider; |
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 Tricks\Services\Upload; | |
use Mockery; | |
use TestCase; | |
$headers = []; | |
function header($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
<?php | |
@foreach (array_chunk($images->toArray(), 4) as $chunk) | |
<tr> | |
@foreach($chunk as $image) | |
<td><img src="{{ $image["url"] }}"></td> | |
@endforeach | |
</tr> | |
@endforeach |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space |
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
❯ composer install | |
Loading composer repositories with package information | |
Installing dependencies (including require-dev) from lock file | |
- Installing illuminate/container (v4.2.8) | |
Loading from cache | |
- Installing michelf/php-markdown (1.4.1) | |
Loading from cache |
OlderNewer