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
/** | |
* Custom jquery.ui.autocomplete widget | |
* for main search input | |
*/ | |
$.widget( "custom.catcomplete", $.ui.autocomplete, { | |
_renderMenu: function( ul, items ) { | |
var that = this, | |
currentCategory = ""; | |
$.each( items, function( index, item ) { | |
if ( item.category != currentCategory ) { |
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
<script type="text/javascript"> | |
Gmaps.map = new Gmaps4RailsGoogle(); | |
Gmaps.load_map = function() { | |
Gmaps.map.map_options.zoom = 18; | |
Gmaps.map.map_options.auto_zoom = false; | |
Gmaps.map.initialize(); | |
Gmaps.map.markers = [{"description":"Description","picture":"/assets/marker.png","width":"32","height":"37","shadow_picture":"/assets/marker_shadow.png","shadow_width":"51","shadow_height":"37","lat":35.6873983,"lng":139.7230538}]; | |
Gmaps.map.create_markers(); | |
Gmaps.map.adjustMapToBounds(); | |
Gmaps.map.callback(); |
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
# ... | |
# Graylog Extended Log Format (GELF) | |
use_gelf = true | |
gelf_listen_address = my-domain.com | |
gelf_listen_port = 12201 | |
# AMQP | |
amqp_enabled = true | |
amqp_host = my-domain.com |
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
require 'spec_helper' | |
describe "Events", type: :controller do | |
before(:each) do | |
FactoryGirl.create(:user) | |
visit '/users/sign_in' | |
fill_in 'Email', with: User.last.email | |
fill_in 'Password', with: 'TestPass666' | |
click_button 'Sign in' |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Encode qw( decode FB_QUIET ); | |
binmode STDIN, ':bytes'; | |
binmode STDOUT, ':encoding(UTF-8)'; | |
my $out; |
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
400 : {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[-0rtgJWIRhGlfQVgDvIopg][events_development_20131223152109451][4]: SearchParseException[[events_development_20131223152109451][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"multi_match\":{\"fields\":[],\"query\":\"k\",\"analyzer\":\"searchkick_autocomplete_search\"}},\"size\":10,\"from\":0,\"fields\":[]}]]]; nested: QueryParsingException[[events_development_20131223152109451] No fields specified for match_all query]; }{[-0rtgJWIRhGlfQVgDvIopg][events_development_20131223152109451][3]: SearchParseException[[events_development_20131223152109451][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"multi_match\":{\"fields\":[],\"query\":\"k\",\"analyzer\":\"searchkick_autocomplete_search\"}},\"size\":10,\"from\":0,\"fields\":[]}]]]; nested: QueryParsingException[[events_development_20131223152109451] No fields specified for match_all query]; }{[-0rt |
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
Disabling CD Sources and Updating Apt Packages and Installing Pre-Reqs | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
git is already the newest version. | |
The following extra packages will be installed: | |
binutils ca-certificates-java consolekit cpp cpp-4.6 cryptsetup-bin dbus-x11 | |
dconf-gsettings-backend dconf-service dpkg-dev fakeroot fontconfig | |
fontconfig-config g++ g++-4.6 gcc gcc-4.6 gconf-service | |
gconf-service-backend gconf2 gconf2-common gvfs gvfs-common gvfs-daemons |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>dummy tiwtter callback</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
window.opener.twitterAccess('27886675-ZsGQnbdNXJ55bJmg3zHIOQxWzd2wZC1nwcHciHOC5', '11aC8gNkbCadU1te898q5HEgJxWEO2SVZz2ndvppeHYLX') |
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
Test gist created with sublime gist package |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Index</title> | |
<script type="text/javascript"> | |
window.open ("popup.html","mywindow", "width=350,height=250"); | |
// Create IE + others compatible event handler |
OlderNewer