const Component = () = {
// a
// lot
// of
// logic
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="android_rules" default="debug"> | |
<!-- | |
This build file is imported by the project build file. It contains | |
all the targets and tasks necessary to build Android projects, be they | |
regular projects, library projects, or test projects. | |
At the beginning of the file is a list of properties that can be overridden | |
by adding them to your ant.properties (properties are immutable, so their |
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
// Copyright 2012 Square, Inc. | |
package com.squareup.test; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import com.actionbarsherlock.ActionBarSherlock; | |
import com.actionbarsherlock.app.ActionBar; | |
import com.actionbarsherlock.internal.ActionBarSherlockCompat; |
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 | |
function asset($path, $secure = null) | |
{ | |
if (app('url')->isValidUrl($path)) return $path; | |
if (is_null($secure)) | |
{ | |
$scheme = app('url')->getRequest()->getScheme($secure) . '://'; |
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 App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Finder\Finder; | |
class FixCashierNamespace extends Command | |
{ | |
/** |
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
# Convert any YouTube video into an audio file you can listen to on the go, using: | |
# http://rg3.github.com/youtube-dl/ | |
{ ~ } > brew install ffmpeg | |
{ ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl | |
{ ~ } > chmod u+x youtube-dl | |
# Pick which video format you want to download.. (use any YT video link) | |
{ ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os |
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
a:hover { | |
/* border glow effect on hover */ | |
box-shadow: 0px 0px 20px #000; | |
filter:progid:DXImageTransform.Microsoft.Glow(Color=black,Strength=20); | |
} |
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
autosize | |
axios | |
chart.js | |
collect.js | |
copy-to-clipboard | |
delegate | |
dom-autoscroller | |
dropzone | |
electron | |
emoji-regex |
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 App; | |
use Illuminate\Database\Eloquent\Model; | |
class BaseModel extends Model | |
{ | |
/** | |
* Override the default boot method to register some extra stuff for every child model. |
OlderNewer