Function | Shortcut |
---|---|
Previous Tab | ⌘ + Left Arrow |
Next Tab | ⌘ + Right Arrow |
Go to Tab | ⌘ + Number |
Go to Window | ⌘ + Option + Number |
Go to Split Pane by Direction | ⌘ + Option + Arrow |
Go to Split Pane by Order of Use | ⌘ + ] , ⌘ + [ |
This file contains hidden or 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 crypto = require('crypto'); | |
const PASSWORD = "098f6bcd4621d373cade4e832627b4f6" | |
, MESSAGE = 'test'; | |
function InvalidSignatureError() { | |
Error.captureStackTrace(this, this.constructor); | |
} | |
function encipher(message, password, callback) { |
We create an index with:
- two filters:
synonyms_expand
andsynonyms_contract
- two analyzers:
synonyms_expand
andsynonyms_contract
- three text fields:
text_1
uses thesynonyms_expand
analyzer at index and search timetext_2
uses thesynonyms_expand
analyzer at index time, but thestandard
analyzer at search timetext_3
uses thesynonyms_contract
analyzer at index and search time
.
This file contains hidden or 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/sh | |
curl -XDELETE localhost:9200/foo >/dev/null | |
curl -XPOST localhost:9200/foo/t -d' | |
{ | |
"clicks": 10, | |
"impressions": 1000, | |
"when": "2013-10-01" | |
} |
I needed a newer version of ImageMagick than is available on the yum packages on Amazon Linux. I tried using the remi repo but it failed with dependency errors. Here is what I did to install ImageMagick with support for PNG, JPG, and TIFF.
download the most recent package
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
uncomress the package
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 vi /etc/apt/sources.list.d/pgdg.list | |
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main # Bu satırı yukarıdaki dosyaya ekliyoruz | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - # evet sonunda tire işareti var | |
sudo apt-get update | |
sudo apt-get install postgresql-9.3 |
This file contains hidden or 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
rescue_from Exception, :with => :server_error | |
def server_error(exception) | |
respond_to do |format| | |
format.html { render template: 'errors/internal_server_error', layout: 'layouts/application', status: 500 } | |
format.all { render nothing: true, status: 500} | |
end | |
end | |
rescue_from ActiveRecord::RecordNotFound, :with => :page_not_found |
This file contains hidden or 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
<form method="post" action="https://secure.payu.com.tr/order/lu.php"> | |
<input type="hidden" name="MERCHANT" value="PAYUDEMO"> | |
<input type="hidden" name="ORDER_REF" value="112457"> | |
<input type="hidden" name="ORDER_DATE" value="2012-05-01 15:51:35"> | |
<input type="hidden" name="ORDER_PNAME[]" value="MacBook Air 13 inç"> | |
<input type="hidden" name="ORDER_PNAME[]" value="iPhone 4S"> | |
<input type="hidden" name="ORDER_PCODE[]" value="MBA13"> | |
<input type="hidden" name="ORDER_PCODE[]" value="IP4S"> | |
<input type="hidden" name="ORDER_PINFO[]" value="Uzatılmış Garanti - 5 Yıl"> | |
<input type="hidden" name="ORDER_PINFO[]" value=""> |