As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update configdocs for npm 8+
- Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for --access=public
- Sep 07, 2020 update docs for npm version
| # prevent the use of `` in tests | |
| Spec::Runner.configure do |configuration| | |
| backtick = nil # establish the variable in this scope | |
| saved_system = nil | |
| configuration.prepend_before(:all) do | |
| # raise an exception if Kernel#` or Kernel#system is used | |
| # in our tests, we want to ensure we're fully self-contained | |
| Kernel.instance_eval do | |
| backtick = instance_method(:'`') | |
| saved_system = instance_method(:system) | 
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | 
| import org.springframework.beans.factory.InitializingBean | |
| import org.zeromq.ZMQ | |
| class ParseService implements InitializingBean { | |
| def pullSocket | |
| def pubSocket | |
| def running = true | |
| def pollingRate = 200 | |
| ' Copyright (c) 2007, Tony Ivanov | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| * Redistributions of source code must retain the above copyright | |
| notice, this list of conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright | |
| notice, this list of conditions and the following disclaimer in the | |
| documentation and/or other materials provided with the distribution. | 
| #!/usr/bin/env ruby | |
| #encoding: UTF-8 | |
| require_relative 'server2' | |
| class Laink::Client | |
| attr_reader :name | |
| def initialize | |
| @server = nil | |
| @name = "Client #{rand(10000).to_s(36)}" | |
| end | 
| #!/usr/bin/ruby | |
| # README | |
| # gem install aws-sdk | |
| # add this to bashrc | |
| # export HT_DEV_AWS_ACCESS_KEY_ID=???? | |
| # export HT_DEV_AWS_SECRET_ACCESS_KEY=???? | |
| # put your pem file in ~/.ssh and chmod 0400 | |
| # for more info see; https://rubygems.org/gems/aws-sdk | 
| class TermsPdf < Prawn::Document | |
| def initialize(application) | |
| super() | |
| @application = application | |
| @listing = @application.listing | |
| @host = @listing.organization | |
| @guest = @application.guest_organization | |
| font "Times-Roman" | |
| default_leading 2 | 
| [alias] | |
| random = !"git add -A; git commit -am \"$(echo $(curl -s http://whatthecommit.com/index.txt)\" (http://whatthecommit.com)\")\"; git pull --rebase; git push" | 
| package protocol | |
| import ( | |
| "fmt" | |
| "log" | |
| ) | |
| // pubsub | |
| type Broker struct { | |
| Send map[string]*chan *Message |