Skip to content

Instantly share code, notes, and snippets.

"{\"medication_name\":\"Bupropion extended-release (antidepressant) - oral\",\"is_brand\":false,\"brands\":[\"WELLBUTRIN XL\"],\"generics\":[\"BUPROPION XL\"],\"pronunciation\":\"(bue-PROE-pee-on)\",\"monograph\":{\"side_effects\":\"See also Warning section. Dry mouth, sore throat, dizziness, nausea, vomiting, ringingin the ears, headache, decreased appetite, weight loss,constipation, trouble sleeping, increased sweating, or shaking(tremor) may occur. If any of these effects persist or worsen,tell your doctor or pharmacist promptly. An empty tablet shell may appear in your stool. This effect isharmless because your body has already absorbed the medication. Remember that your doctor has prescribed this medicationbecause he or she has judged that the benefit to you is greaterthan the risk of side effects. Many people using this medicationdo not have serious side effects. This medication may raise your blood pressure. Check yourblood pressure regularly and tell your doctor if the results arehigh. Tell
@dkan
dkan / address.proto
Created June 20, 2016 18:46
test proto file
message Addresses {
repeated Address addresses = 1;
}
message Address {
string street_address_1 = 2;
string street_address_2 = 3;
string city = 4;
string state = 5;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkan
dkan / gist:259ceda7895d8c658cbf
Created January 6, 2015 00:57
Socket Manager
import Foundation
class SocketManager: NSObject, SRWebSocketDelegate {
let kSocketUrl: NSURL = NSURL(string: "wss://narwhal-sock.herokuapp.com/")!
var connectionAttempts: Int = 0
var isConnected: Bool = false
var ws: SRWebSocket?
class var sharedInstance: SocketManager {
struct Static {
@dkan
dkan / rb
Created July 8, 2012 22:15
ruby assessment
module AddressBook
class Person
attr_reader :first_name, :last_name, :email_addresses, :addresses, :phone_numbers
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
@email_addresses = []
@addresses = []
@phone_numbers = []
end
@dkan
dkan / TODO
Created June 22, 2012 00:30
TODO
DEBUG = false
LOAD_FROM_FILE = true
LOAD_FILENAME = "todo.txt"
NAME_LENGTH = 30
PRIORITY_LENGTH = 13
CREATED_LENGTH = 13
COMPLETED_LENGTH = 13
HELP_LENGTH = 40
@dkan
dkan / RPN
Created June 21, 2012 00:22
RPN
class RPNCalculator
attr_accessor :calculator
def initialize
@calculator = []
@num1 = 0
@num2 = 0
end
def push(num)
@dkan
dkan / event_manager
Created June 20, 2012 01:24
event_manager
# Dependencies
require "csv"
require "sunlight"
require "date"
# Class Definition
class EventManager
INVALID_ZIPCODE = "00000"
INVALID_PHONE_NUMBER = "0"*10
Sunlight::Base.api_key = "e179a6973728c4dd3fb1204283aaccb5"
@dkan
dkan / gist:2951571
Created June 19, 2012 00:07
JSTwitter
require 'bitly'
require 'jumpstart_auth'
require 'klout'
class JSTwitter
attr_reader :client
def initialize
puts "Initializing..."
@dkan
dkan / blocs and procs
Created June 16, 2012 01:53
blocs and procs
friends = ["Sally", "Mary", "Joe"]
love = []
friends.each do |friend|
love << "I love " + friend + "."
end
puts love
class Array