Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Cabral cameri

∞/21M
View GitHub Profile
SELECT `business_id`,`venue_id`, `VenueHour`.`days`,
GROUP_CONCAT(
CONCAT(
(`VenueHour`.`begin_hour` >> 4)%12,
':',
LPAD((`VenueHour`.`begin_hour` & 15)*5,2,'0'),
IF(`VenueHour`.`begin_hour` < 192, ' a.m.', ' p.m.'),
' - ',
(`VenueHour`.`end_hour` >> 4)%12,
':',
prefix: '&7[&3SG&7] &6'
no-permission: '&cYou don''t have permission to do this!'
cmd-error: '&cError: %0%'
join-unknown-game: '&cThe lobby %0% does not exist!'
join-game-running: '&cThis game is already running!'
join-vehicle: '&cYou can''t join SurvivalGames in a vehicle!'
join-game-full: '&cSorry, this lobby is full!'
join-success: '%0% joined the lobby! &7(&e%1%&7/&e%2%&7)'
fulljoin-kick: '&cI''m sorry, you''ve been kicked to make a free slot for a donator
or a team member!'
log:
enabledPlugin: '%TAG%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.'
disabledPlugin: '%TAG%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.'
help:
info: '%NDisplays the plugin''s info.'
help: '%NShows a list of commands.'
reload: '%NReloads all configs.'
join: '%NJoins a BlockHunt game.'
leave: '%NLeave a BlockHunt game.'
list: '%NShows a list of available arenas.'
@cameri
cameri / .xbindkeysrc
Last active August 29, 2015 14:04 — forked from anonymous/.xbindkeysrc
# Play/Pause
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
XF86AudioPlay
# Next
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
XF86AudioNext
# Previous
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
<?php
App::uses('Component', 'Controller');
class CodeComponent extends Component {
private $letters = array(
'6','M','Z','J','L',
'K','2','H','R','W',
'5','U','3','S','Y',
'X','4','7','C','A',
@cameri
cameri / file.rb
Created June 13, 2014 04:51
Android created Gist
[Unit]
Description=Hourly Timer Target
StopWhenUnneeded=yes
<!doctype html>
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script src="userctrl.js"></script>
<script src="https://apis.google.com/js/client.js?onload=init"></script>
</head>
<body>
<div ng-controller="UserCtrl">
<?php
echo $this->Form->input(
'SelectedLanguage',
array(
'type' => 'hidden',
'div' => false,
'onchange' => 'this.form.submit()',
'options' => Configure::read('Localization.languageAliases'),
'default' => Configure::read('Config.language')
<?php
/**
* User registration
*
* @param int Step
* @return void
*/
public function register($step = 1)
{
$first = 1;
<?php
// Pass settings in
$this->Auth->authenticate = array(
'Form' => array('userModel' => 'Usuario')
);