SELECT * FROM `tbl`
INTO OUTFILE '/tmp/out.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
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
Shift.EventAttacher = function(sl) | |
{ | |
this.router = | |
{ | |
'shift.ready' : 'attachEvents', | |
'attach-events': 'attachEvents' | |
}; | |
this.view = | |
{ |
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
<!DOCTYPE html> | |
<html dir="ltr" lang="sv-SE"> | |
<head> | |
<title>Flipper</title> | |
<meta charset="utf-8"> | |
<style> | |
.thumb | |
{ |
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
sudo apt-get install make | |
sudo apt-get install php5 | |
sudo apt-get install php5-dev | |
sudo apt-get install php-pear | |
sudo apt-get install libyaml-dev | |
sudo pecl install yaml-1.1.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 | |
$search = array( | |
'á', | |
'ä', | |
'Ä', | |
'ç', | |
'é', | |
'É', |
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
Shift.Log = function() | |
{ | |
this.router = | |
{ | |
'error.*': 'error' | |
}; | |
this.view = | |
{ | |
error: function(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
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN ln -snf /usr/share/zoneinfo/Europe/Madrid /etc/localtime && echo "Europe/Madrid" > /etc/timezone | |
RUN apt-get -y update && apt-get -y install \ | |
build-essential git python | |
RUN git clone git://github.com/nodejs/node.git /tmp/nodejs \ |
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
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN ln -snf /usr/share/zoneinfo/Europe/Madrid /etc/localtime && echo "Europe/Madrid" > /etc/timezone | |
RUN apt-get -y update && apt-get -y install \ | |
build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev \ | |
libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev git |
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 actionByBit($actions, $dec, $bits) | |
{ | |
for($i = 0, $count = count($actions); $bits > 0; $i++) | |
if($dec & 1 << --$bits && $i < $count) | |
$actions[$i](); | |
} | |
$hex = '70 0C 00 00'; |
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
(function($) | |
{ | |
$(document).on('input', 'textarea', function() | |
{ | |
var $this = $(this); | |
var padTop = parseInt($this.css('padding-top'), 10); | |
var padBot = parseInt($this.css('padding-bottom'), 10); | |
$this.height(0); | |
var scroll = $this.prop('scrollHeight'); | |
$this.height(scroll - padTop - padBot); |
OlderNewer