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
| // Copyright 2014 BrightTag, Inc. All rights reserved. | |
| package com.brighttag.storm.utils; | |
| import static com.google.common.base.Preconditions.checkArgument; | |
| /** | |
| * Computes the parallelism for a particular topology and machine configuration. | |
| * | |
| * @author codyaray | |
| * @since 4/21/2014 |
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
| // Set up the UIRefreshControl. | |
| self.refreshControl = [[UIRefreshControl alloc] init]; | |
| [self.refreshControl addTarget:self | |
| action:@selector(refreshInvoked:forState:) | |
| forControlEvents:UIControlEventValueChanged]; | |
| // Create a UITableViewController so we can use a UIRefreshControl. | |
| UITableViewController *tvc = [[UITableViewController alloc] initWithStyle:self.tableView.style]; | |
| tvc.tableView = self.tableView; | |
| tvc.refreshControl = self.refreshControl; |
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
| { | |
| "title": "Apache and Tomcat Logs", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "apache !tomcat !static", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 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
| input { | |
| redis { | |
| host => "127.0.0.1" | |
| type => "redis-input" | |
| # these settings should match the output of the agent | |
| data_type => "list" | |
| key => "logstash" | |
| # We use json_event here since the sender is a logstash agent | |
| message_format => "json_event" | |
| } |
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 scrapy.xlib.pydispatch import dispatcher | |
| from scrapy import signals | |
| from scrapy.exceptions import DropItem | |
| from scrapy.utils.serialize import ScrapyJSONEncoder | |
| from carrot.connection import BrokerConnection | |
| from carrot.messaging import Publisher | |
| from twisted.internet.threads import deferToThread |
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
| /****** Object: StoredProcedure [dbo].[GetJSON] Script Date: 5/28/2013 4:31:01 PM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| CREATE procedure [dbo].[GetJSON] | |
| ( | |
| @table_name varchar(50), |
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
| import java.io.UnsupportedEncodingException; | |
| import com.stripe.model.Charge; | |
| import com.stripe.util.StripeClient; | |
| public class StripeTest { | |
| public static void main(String[] args) { | |
| try { | |
| StripeClient.setKey("your-api-key"); |
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
| /** | |
| * Example usage of Stripe java bindings. | |
| * See https://stripe.com/docs/libraries#java-library | |
| * | |
| * Usage: | |
| * mkdir stripe-test | |
| * cd stripe-test | |
| * wget https://code.stripe.com/stripe-java-latest.jar | |
| * wget http://google-gson.googlecode.com/files/google-gson-2.2.2-release.zip | |
| * unzip google-gson-2.2.2-release.zip |
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
| angular.module('app', []); | |
| angular.module('app').controller | |
| ( 'MainCtrl' | |
| , function($scope,$locale) { | |
| $scope.currentYear = new Date().getFullYear() | |
| $scope.currentMonth = new Date().getMonth() + 1 | |
| $scope.months = $locale.DATETIME_FORMATS.MONTH | |
| $scope.ccinfo = {type:undefined} | |
| $scope.save = function(data){ |