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
Total Accesses: 4957 | |
Total kBytes: 2982 | |
CPULoad: .0151129 | |
Uptime: 150070 | |
ReqPerSec: .0330313 | |
BytesPerSec: 20.3476 | |
BytesPerReq: 616.011 | |
BusyWorkers: 1 | |
IdleWorkers: 49 | |
ConnsTotal: 2 |
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
class MetalController < ActionController::Metal | |
include AbstractController::Rendering | |
include ActionView::Layouts | |
include ActionController::Serialization | |
include ActionController::Rendering | |
include ActionController::Renderers::All | |
include ActionController::Redirecting | |
include AbstractController::Callbacks | |
include AbstractController::Helpers | |
include ActionController::ParamsWrapper |
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
# app/assets/javascripts/some_controller.coffee | |
require ['jquery'], ($) -> | |
$ -> | |
console.log 'Page is loaded and ready to go' |
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
package main | |
func main() { | |
doSomethingGreat(100) | |
} | |
func doSomethingGreat(i int) (int, int) { | |
x := i + 20 | |
y := x + 20 - 10 + 3 | |
return x,y |
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
package api | |
import ( | |
"log" | |
"github.com/gorilla/mux" | |
"http" | |
) | |
func startRouter() { |
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
(function(){ | |
(function(){ | |
var ship_it = "Ship It"; | |
return function() { | |
console.log("Ship It"); | |
} | |
})() | |
})()() |
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
(function() { | |
})()(); |
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
def friends_circles(circle_limit = 1) | |
circles = [] | |
@followings = self.followings.includes(:user) | |
self.followings.each do |following| | |
circles << following.user.circles.limit(circle_limit).first | |
end | |
circles.reject { |c| self.member_of?(c) } | |
end |
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
module Jobs | |
class PromoRewardsJob | |
@queue = "social" | |
class << self | |
def perform(redeemable_promo_code_id) | |
@redeemable_promo_code = RedeemablePromoCode.find(redeemable_promo_code_id) | |
@user = @redeemable_promo_code.redeemed_by | |
@rewards = @redeemable_promo_code.promo_code.rewards |
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 jquery.blockUI | |
//= require underscore | |
//= require underscore.customurlscheme | |
//= require store-common/payments.js | |
//= require jquery.payment | |
(function(window, $, _) { | |
var NO_PAYMENT_REQUIRED_ATTR = "data-noPaymentRequired"; |
NewerOlder