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
!SESSION 2014-02-19 11:20:29.864 ----------------------------------------------- | |
eclipse.buildId=4.3.0.M20130911-1000 | |
java.version=1.7.0_51 | |
java.vendor=Oracle Corporation | |
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US | |
Command-line arguments: -os linux -ws gtk -arch x86_64 | |
!ENTRY org.eclipse.ui 4 0 2014-02-19 11:23:05.627 | |
!MESSAGE Unhandled event loop exception | |
!STACK 0 |
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 | |
/* | |
First Previous 1 2 3 ... 22 23 24 25 26 [27] 28 29 30 31 32 ... 48 49 50 Next Last | |
*/ | |
// Number of page links in the begin and end of whole range | |
$count_out = ( ! empty($config['count_out'])) ? (int) $config['count_out'] : 3; | |
// Number of page links on each side of current page | |
$count_in = ( ! empty($config['count_in'])) ? (int) $config['count_in'] : 5; |
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 | |
// http://www.movable-type.co.uk/scripts/latlong.html | |
// converted from JS to PHP | |
$d_lat = deg2rad($lat1 - $lat2); | |
$d_lon = deg2rad($lon1 - $lon2); | |
$lat1 = deg2rad($lat1); | |
$lat2 = deg2rad($lat2); |
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 defined('SYSPATH') or die('No direct script access.'); | |
class Kohana_Exception extends Kohana_Kohana_Exception { | |
public static function handler(Exception $e) | |
{ | |
if (Kohana::DEVELOPMENT === Kohana::$environment) | |
{ | |
parent::handler($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 defined('SYSPATH') OR die('No direct access allowed.'); | |
abstract class Jelly_Model_MPTT extends Jelly_Model { | |
protected static $_columns = array( | |
'left' => 'lft', | |
'right' => 'rgt', | |
'scope' => 'scope', | |
'level' => 'lvl', | |
'parent_id' => 'parent_id', |
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 | |
/** | |
* Applys a function to a specific set of keys in an array | |
* | |
* @param array & $source_array the array to apply the callback to | |
* | |
* @return null | |
*/ | |
public function apply( & $source_array, $callback, $keys) |
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
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
/* Webkit specific code here */ | |
} |
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
#!/bin/bash | |
MAJOR_VERSION=$1 | |
MINOR_VERSION=$2 | |
if [ $# -lt 2 ] | |
then | |
echo "Usage: $0 <MAJOR-VERSION> <MINOR-VERSION>" | |
exit | |
fi |
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 gist can be used to list all targets, or - more correctly - rules, | |
# that are defined in a Makefile (and possibly other included Makefiles) | |
# and is inspired by Jack Kelly's reply to a StackOverflow question: | |
# | |
# http://stackoverflow.com/questions/3063507/list-goals-targets-in-gnu-make/3632592#3632592 | |
# | |
# I also found this script - http://www.shelldorado.com/scripts/cmds/targets - which does | |
# something similar using awk, but it extracts targets from the "static" rules from a single | |
# Makefile, meaning it ignores any included Makefiles, as well as targets from "dynamic" rules |
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
/** | |
* Render notices | |
* | |
* Converts a JSON object to the HTML notice | |
* | |
* @param json JSON object | |
* @return string | |
*/ | |
function notify(data) | |
{ |
OlderNewer