- Add new contacts. Should ask for name, email, phone number, address.
- List all contacts.(Display it prettily)
- Search all contacts and display if the search key matches anything (name/email/phone number/address). Display a serial number beside each search result.
- Edit a contact based on the serial number above.
- Delete a contact based on the serial number above.
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 'dbus' | |
require 'uri' | |
require 'shellwords' | |
bus = DBus::SessionBus.instance | |
service = bus.service('org.gnome.Rhythmbox3') | |
object = service.object("/org/mpris/MediaPlayer2") | |
object.introspect | |
interface = object['org.mpris.MediaPlayer2.Player'] | |
metadata = interface['Metadata'] |
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 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' # for rbenv support. (http://rbenv.org) | |
# require 'mina/rvm' # for rvm support. (http://rvm.io) | |
# Basic settings: | |
# domain - The hostname to SSH to. | |
# deploy_to - Path to deploy into. | |
# repository - Git repo to clone from. (needed by mina/git) |
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 PresenceValidator | |
attr_reader :errors | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
private | |
def validate | |
@errors = [] | |
options = self.class.options |
This is a test to:
- See if this works
- this means http://gist.io
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
public int SumOfSquares() | |
{ | |
int sum=0; | |
for(int i=1; i<=100; i++) | |
sum += i; | |
return sum; | |
} |
NewerOlder