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
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(); |
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
Trying to implement is_helix? | |
input: GVGTVPMTDY | |
expected output: _____hh___ | |
* Like this? | |
input expected output | |
GVGTV => 0 | |
VGTVP => 0 | |
GTVPM => 0 |
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
[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 |
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
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) |
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
[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. |
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
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 |
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
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)} |
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
Top terms per cluster: | |
Cluster 0 words: | |
lost | |
shaver | |
charger | |
've | |
beard | |
Electric |
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
Cluster 0 words: | |
shaver | |
MENTION | |
Just | |
Electric | |
shaved | |
Cluster 0 tweets: | |
_body |
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
# 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: |
OlderNewer