Instantly share code, notes, and snippets.

View manager.rb
# frozen_string_literal: true
require 'netsnmp'
require 'logger'
module NETSNMP
# Provides a base class for building SNMP Managers
# Does not implement a transport so must be subclassed


The API used for DTLS is mostly the same as for TLS, because of the mapping of generic functions to protocol specifc ones. Some additional functions are still necessary, because of the new BIO objects and the timer handling for handshake messages. The generic concept of the API is described in the following sections. Examples of applications using DTLS are available at [9].

DTLS の API は TLS とほぼ同じ。 BIO オブジェクトの生成とタイマのために追加でいくつか必要。

View $namedRoute.js
(function(angular) {
'use strict';
FILE --app.js--
View gist:5335327
(function(angular, undefined) {
'use strict';
angular.module('Core.SafeApply', []).
service('Core.SafeApply', function() { = function(scope, fn) {
var phase = scope.$root.$$phase;
if(phase == '$apply' || phase == '$digest') {
View gist:5204160
require 'celluloid'
require 'benchmark'
class Example
include Celluloid
def slow_method
sleep 5
View gist:5204063
require 'celluloid'
require 'benchmark'
$mutex =
$resource =
class Example
include Celluloid
def slow_method
View gemfile.rb
source ''
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See for more supported runtimes