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
public class CustomInfoWindowAdapter implements GoogleMap.InfoWindowAdapter { | |
private Activity context; | |
public CustomInfoWindowAdapter(Activity context){ | |
this.context = context; | |
} | |
@Override |
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
class PeekingLinearLayoutManager : LinearLayoutManager { | |
@Suppress("Unused") | |
@JvmOverloads | |
constructor(context: Context?, @RecyclerView.Orientation orientation: Int = RecyclerView.VERTICAL, reverseLayout: Boolean = false) : super(context, orientation, reverseLayout) | |
@Suppress("Unused") | |
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes) | |
override fun generateDefaultLayoutParams() = | |
scaledLayoutParams(super.generateDefaultLayoutParams()) |
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
#!/usr/bin/ruby | |
# | |
# Moved to: https://github.com/uriel1998/volumerb | |
# | |
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 | |
# Unported License. To view a copy of this license, visit | |
# http://creativecommons.org/licenses/by-sa/3.0/. | |
# | |
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj); |
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\Http\Controllers; | |
use Illuminate\Http\Request; | |
trait RestControllerTrait | |
{ | |
public function index() | |
{ | |
$m = self::MODEL; | |
return $this->listResponse($m::all()); |
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import store from './store'; | |
const rootEl = document.getElementById('root'); | |
// Create a reusable render method that we can call more than once | |
let render = () => { | |
// Dynamically import our main App component, and render it |
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 | |
class Agent extends Fuel\Core\Agent {} | |
class Arr extends Fuel\Core\Arr {} | |
class Asset extends Fuel\Core\Asset {} | |
class Cache extends Fuel\Core\Cache {} | |
class CacheNotFoundException extends Fuel\Core\CacheNotFoundException {} | |
class CacheExpiredException extends Fuel\Core\CacheExpiredException {} | |
class Cli extends Fuel\Core\Cli {} | |
class Config extends Fuel\Core\Config {} |
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
<? | |
/** | |
* @package Helpers | |
* @category Concrete | |
* @author Andrew Embler <andrew@concrete5.org> | |
* @copyright Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org) | |
* @license http://www.concrete5.org/license/ MIT License | |
*/ | |
/** |