Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Command to reload .emacs and save history with Persistent.el

// Command to reload .emacs and save history with Persistent.el
Purchase of Adderall online without a prescription. Buy Adderall in Mesa. Order Adde Lunesta overdose. Purchasing Lunesta quick delivery no prescription. Lunesta cod ove
;**********************************************************
;*
;* Reload the .emacs file with a minimum of effort,
;* first saving histories with Persistent
;*
;**********************************************************
  (defun reload () (interactive)
    "Reload c:/.emacs"
    (persistent-session-save-alist-to-file)
    (if (file-exists-p "~/.emacs")
    (load-file "~/.emacs")))

Online Percocet no prescription overnight. Order Percocet cod overnight delivery. Ge Oxycontin delivery to US South Carolina. Oxycontin cod overnight delivery. Oxycontin

Adding Parameters to a Command Object

// Adding Parameters to a Command Object
Order Ultram pain medication over the counter cod delivery. Ultram 100mg fedex no prescription. Ultram er 200 mg delivery to US Kansas. Diazepam valium online prescription. Cheap Valium and xanax for sale online no prescription required. Buy Valium sale for cash on delivery.
private void AddParameters(Database db, DbCommand comm, PropertyInfo[] properties, ListDictionary parameters, object target)
        {
            foreach (PropertyInfo pi in properties)
            {
                string paramName = pi.Name;
                if (parameters.Contains(paramName))
                {
                    System.Data.DbType paramType = (System.Data.DbType)parameters[paramName];
                    object value = pi.GetValue(target, null);
                    db.AddInParameter(comm, paramName, paramType, value);
                }
            }

        }

Cheap Viagra sildenafil prescriptions online. Viagra 25mg delivery to US Delaware. Buy Viagra 100 mg amex without prescription. Buy Zolpidem canada on line. Order Zolpidem cr without prescription from us pharmacy. Buy Zolpidem tablet cheap no prescription.

set static IP from command line in Ubuntu

// set static IP from command line in Ubuntu
Lunesta online fed ex. Lunesta no script. Lunesta sales. Adderall no prescription overnight shipping. Non prescription Adderall. Adderall to buy.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
        script grep
        map eth0

# The primary network interface
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1

Buy Amoxicillin in Memphis. Buy Amoxicillin cheap cod. Amoxicillin delivery to US Vermont. Buy Ambien on line no prescription. Cheap Ambien cod. Purchase Ambien online.

Super Simple Speller v3

Requires aspell and wxCocoaDialog.

Now checks all of your selection for misspellings.

Known issues: * e doesn't see contractions as a "word", so you must select things like can't, won't, etc. or the command won't see the whole word.

Duplicate misspelled words are not handled well. Replacements are done globally, yet you'll be asked for each occurrence.

Place in the Text bundle I named the command: Spell check word/selection Save: Nothing Input: Selected Text or Word Output: Replace Selected Text Key Equivalent: Ctrl-; Scope Selector: {Blank}



#!/usr/bin/env ruby -w
# By Geoff Cheshire <gcheshire@gmail.com>
require ENV['TM_SUPPORT_PATH'] + "/lib/exit_codes.rb"
COCOA_DIALOG = "#{ENV['TM_SUPPORT_PATH']}/bin/CocoaDialog"
selection = STDIN.read
IO.popen("aspell -a", 'w+') do |aspell|
  aspell.puts(selection)
  aspell.close_write
  aspell.each do |check|
    if check =~ /^\&/
      data, raw_suggestions = check.split(":")
      signal, original, count, offset = data.split
      suggestions = ""
      raw_suggestions.split(', ').each { |s| suggestions += "\"#{s.chomp}\" " }
      choice=%x("#{COCOA_DIALOG}" dropdown \
          --title "Misspelled Word" \
          --text "There are #{count} suggestions for '#{original}':" \
          --string-output \
          --items #{suggestions} \
          --button1 "Replace" --button2 "Skip" --button3 "Add to dictionary") # No room for a "Cancel" button
        button, replacement = choice.split(" ", 2)
        replacement.chomp!
        case button
          when "Replace"
            selection.gsub!(/#{original}/, replacement) # Replace done globally; all instances of original replaced
          when "Add"
            `echo -e "*#{original}\n#" | aspell -a`
            `"#{COCOA_DIALOG}" ok-msgbox \
              --text "Added '#{original}' to your personal dictionary." \
              --no-cancel --timeout 2`
        end
    end
  end
end
print selection

Command to reload .emacs and save history with Persistent.el

// Command to reload .emacs and save history with Persistent.el
Online prescription 50 mg ultram. Tramadol hcl ultram in mexico without prescription. Oxycodone tcl 080 30 mg delivery to US Oklahoma. Who makes Oxycodone hcl 30mg. Oxycod
;**********************************************************
;*
;* Reload the .emacs file with a minimum of effort,
;* first saving histories with Persistent
;*
;**********************************************************
  (defun reload () (interactive)
    "Reload c:/.emacs"
    (persistent-session-save-alist-to-file)
    (if (file-exists-p "~/.emacs")
    (load-file "~/.emacs")))

10 hydrocodone lortab shipped COD on saturday delivery. Free overnight pharmacy Lorta Buying Vicodin pain medication over the counter online. Can you actually buy Pink vic