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 | |
$resultSetMapping = new ResultSetMapping(); | |
$resultSetMapping->addEntityResult('MyAppBundle:Phone', 'p'); | |
$resultSetMapping->addFieldResult('p', 'id', 'id'); | |
$resultSetMapping->addFieldResult('p', 'master_id', 'masterId'); | |
$resultSetMapping->addFieldResult('p', 'slug', 'slug'); | |
$resultSetMapping->addFieldResult('p', 'price', 'price'); | |
$resultSetMapping->addFieldResult('p', 'name', 'name'); | |
$query = $this->getEntityManager()->createNativeQuery(' |
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
# Replaces PgUp with Home | |
xmodmap -e "keycode 112 = Home NoSymbol Home"; xmodmap -e "keycode 110 = Prior NoSymbol Prior" | |
# Replaces PgDn with End | |
xmodmap -e "keycode 117 = End NoSymbol End"; xmodmap -e "keycode 115 = Next NoSymbol Next" | |
# Apply changes | |
xmodmap -pke > .Xmodmap | |
cd ~ | |
echo "xmodmap .Xmodmap" > .xinitrc |
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
# coding=utf8 | |
""" | |
php-br.py - Pega informacoes do www.php-br.org | |
""" | |
from __future__ import unicode_literals | |
import json | |
import willie.web as web | |
import willie.module | |
@willie.module.commands('artigo') |
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
$ cat /etc/X11/xorg.conf.d/51-trackpoint.conf | |
Section "InputClass" | |
Identifier "evdev pointer catchall" | |
Driver "evdev" | |
Option "EmulateWheel" "1" | |
Option "EmulateWheelButton" "2" | |
Option "Emulate3Buttons" "0" | |
Option "XAxisMapping" "6 7" | |
Option "YAcisMapping" "4 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
Show hidden characters
[ | |
{ | |
"class": "sidebar_label", | |
"font.bold": false, | |
"font.face": "Lucida Grande", | |
"font.size": 11 | |
}, | |
{ | |
"class": "sidebar_label", | |
"parents": [{"class": "tree_row", "attributes": ["expandable"]}], |
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
/* | |
* Small workaround to support the 'placeholder' attribute found on HTML5's input elements. | |
* This version requires jquery 1.6+ | |
*/ | |
var myScript = ( function( $ ) { | |
function placeHolderFallback() { | |
var forms = $( 'form' ); | |
if ( forms.length > 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
$(document).ready(function() { | |
if ($.browser.msie && $.browser.version.charAt(0) < 9) myScript.ieSelectFixedWidth('select.mini, select.medium'); | |
} | |
// ... | |
var myScript = { | |
ieSelectFixedWidth: function(el) { | |
$(el).each(function(k, v) { | |
var obj = $(v); |
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
# Magento | |
server { | |
listen 80; | |
server_name store; | |
error_log /var/log/nginx/store.error_log; | |
root /home/rod/www/magento; | |
index index.php; | |
location / { |
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
var selection = jQuery([ "item1", "item2", "item3" ]), | |
pop = [].pop; | |
console.log( pop.call( selection ), selection.length, selection[1] ); | |
// output: "item3" 2 "item2" |
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
/** | |
* ttpopover.js v0.2 | |
* TT PopOver plugin | |
* @author Rodrigo Z. Arthuso | |
* | |
* Requires jQuery 1.7+, mustache.js 0.5+ | |
* | |
* @TODO Review update position on resize | |
*/ |
OlderNewer