Skip to content

Instantly share code, notes, and snippets.

port = new Airport(1);
port = new Airport("/custom/path.xml");
port.save();
port.save("/custom/path.xml")
private XMLHandler handler;
public Airport() {
this(240, 50, 300, "Heathrow");
handler = new XMLHandler();
Trying to implement is_helix?
input: GVGTVPMTDY
expected output: _____hh___
* Like this?
input expected output
GVGTV => 0
VGTVP => 0
GTVPM => 0
[vagrant@vagrant-centos-6 vagrant]$ rake sphinx:index
Booting asw-api in development environment
Braintree transactions will run in sandbox mode
Skipping migrations check - have you remembered to run migrations recently?
PayPal transactions will run in sandbox mode
Pensio transactions will run in sandbox mode
Setting Resque to use Redis server at localhost:6379
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Permission denied @ rb_sysopen - /var/spool/cron/vagrant
Filling cache tables...
This may take a long time depending on size of data
... members
Flushing members
Processing 8188 records
Cache tables filled
Flushing old indexes
Indexer starting...
This may take a long time depending on size of data
Sphinx 2.0.6-id64-release (r3473)
[vagrant@vagrant-centos-6 vagrant]$ rake sphinx:stop
Booting asw-api in development environment
Braintree transactions will run in sandbox mode
Skipping migrations check - have you remembered to run migrations recently?
PayPal transactions will run in sandbox mode
Pensio transactions will run in sandbox mode
Setting Resque to use Redis server at localhost:6379
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Stopping - Dispatcher... couldn't find PID file - no action taken.
Stopping - Delta Script... couldn't find PID file - no action taken.
diff --git a/app/models/ticketing/ticket_transaction.rb b/app/models/ticketing/ticket_transaction.rb
index 50b3a3c..3a6ea7d 100644
--- a/app/models/ticketing/ticket_transaction.rb
+++ b/app/models/ticketing/ticket_transaction.rb
@@ -48,12 +48,20 @@ class TicketTransaction < ActiveRecord::Base
def state_cleared
self.update_column(:cleared_at, DateTime.now)
+ complete! unless require_guest_names
end
k1 = function(str) { key = OSX.keyCodes[str]; e = $.CGEventCreateKeyboardEvent(null, key, true); $.CGEventPost($.kCGSessionEventTap, e)}; k2 = function(str) { key = OSX.keyCodesRegular[str]; e = $.CGEventCreateKeyboardEvent(null, key, true); $.CGEventPost($.kCGSessionEventTap, e)}; k3 = function(str) { key = OSX.keyCodesShift[str]; e = $.CGEventCreateKeyboardEvent(null, key, true); $.CGEventPost($.kCGSessionEventTap, e)}
Top terms per cluster:
Cluster 0 words:
lost
shaver
charger
've
beard
Electric
Cluster 0 words:
shaver
MENTION
Just
Electric
shaved
Cluster 0 tweets:
_body
# Authors: Daniyal Shahrokhian, Mattias Arro
import numpy as np
from scipy.stats import bernoulli
# Generates n points(labels) accodring to the distribution of the exercise
def gen_points(x_values):
points = []
for x in x_values: