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
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" } |
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
/* | |
* From Petabridge's Akka.Remote training: https://petabridge.com/training/akka-remoting/ | |
* Copyright Petabridge LLC, 2015. | |
*/ | |
/// <summary> | |
/// Master actor responsible for the management of friends lists | |
/// </summary> | |
public class FriendsMaster : ReceiveActor | |
{ |
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
# Defines a namespace for my application | |
MyApplication = {} | |
# A way to pass a callback both to jQuery's "ready" and turbolinks' "page:load" events | |
MyApplication.onDocumentReady = (callback) -> | |
$(document).ready(callback) | |
$(document).on('page:load', callback) | |
# Defines a function to load the SumoMe script | |
MyApplication.load_sumome_script = (data_sumo_site_id) -> |
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
from cqlengine import columns | |
from cqlengine.models import Model | |
class Users(Model): | |
firstname = columns.Text() | |
age = columns.Integer() | |
city = columns.Text() | |
email = columns.Text() | |
lastname = columns.Text(primary_key=True) | |
def __repr__(self): |
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
from cassandra.cluster import Cluster | |
from cassandra.policies import (TokenAwarePolicy, DCAwareRoundRobinPolicy, RetryPolicy) | |
from cassandra.query import (PreparedStatement, BoundStatement) | |
cluster = Cluster( | |
contact_points=['127.0.0.1'], | |
load_balancing_policy= TokenAwarePolicy(DCAwareRoundRobinPolicy(local_dc='datacenter1')), | |
default_retry_policy = RetryPolicy() | |
) | |
session = cluster.connect('demo') |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
NewerOlder