⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns=""> | |
<head> | |
<meta httpd-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#button").click(function() { | |
var surl = "http://jsonp.tld/json.php"; | |
var id = $(this).attr("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
const int ledPin = 9; | |
const int switchPin = 2; | |
int buttonState = 0; | |
int multiplier = 0; | |
float buttonPressedCounter = 0.0; | |
void setup() { | |
pinMode(ledPin, OUTPUT); |
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
{ | |
"query": { | |
"function_score": { | |
"query": { | |
"bool": { | |
"must": { | |
"multi_match": {"query": "Renaissance", "fields": ["name", "company"]}, | |
"term": {"features": "disability_access"}, | |
}, | |
"should": { |
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 | |
apt-get update | |
add-apt-repository ppa:webupd8team/sublime-text-2 | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y gcc gdb g++ python-software-properties openjdk-7-jre openjdk-7-jdk nginx php5-fpm php5-imagick php5-imap php5-mcrypt php5-memcached php5-memcache php5-redis php5-xdebug php5-curl php5-json php5 php5-cli php5-dev php5-gd php5-mysql php5-pgsql php5-xmlrpc php5-adodb php5-geoip php5-mongo git subversion vim php5-curl python-pip redis-server redis-tools mysql-server mysql-client ssh curl htop libsphinxclient-0.0.1 libsphinxclient-dev transmission libc6 maven tomcat7 tomcat7-docs tomcat7-admin tomcat7-examples aptitude gem nodejs ruby-dev sublime-text screen supervisor ipython |
- Main Web: http://www.elasticsearch.org/
- Development URL: https://github.com/elasticsearch/elasticsearch
- License: Apache 2
- Environment: Java
Elasticsearch was created in 2010 by Shay Banon after forgoing work on another search solution, Compass, also built on Lucene and created in 2004.
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 | |
header("Content-Type:text/html; charset=utf8"); | |
$cli = new SphinxClient(); | |
$cli->setServer("127.0.0.1", 9312); | |
$cli->setMatchMode(SPH_MATCH_EXTENDED2); | |
$result = $cli->query("bu süreçte yalnız değilsin"); | |
var_dump($result); | |
/* |
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 test | |
{ | |
protected $data; | |
public function set($key, $value) | |
{ | |
$points = explode(".", $key); | |
$tmp =& $this->data; |
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
[27-May-2014 14:10:18] WARNING: [pool rebuy] child 3963 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'test exception' in /foo/htdocs/index.php:4" |
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
input { | |
beats { | |
port => 5044 | |
type => "php5-fpm" | |
ssl => true | |
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt" | |
ssl_key => "/etc/pki/tls/private/logstash-forwarder.key" | |
} | |
} |
OlderNewer