This file contains hidden or 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
-(void)testUILooksGood | |
{ | |
// set up the appropriate state here | |
[controller showWindow:nil]; | |
NSModalSession session = [[NSApplication sharedApplication] beginModalSessionForWindow:controller.window]; | |
while ( | |
controller.window.isVisible | |
&& ([[NSApplication sharedApplication] runModalSession:session] == NSRunContinuesResponse) |
This file contains hidden or 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
// | |
// main.m | |
// irssihelper | |
// | |
// Created by Daniel on 26.06.11. | |
// Copyright 2011 3dannalt. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
This file contains hidden or 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
self.progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, 100.0f, 20.0f)]; | |
NSImageView *iv = [[NSImageView alloc] init]; | |
iv.image = NSApplication.sharedApplication.applicationIconImage; | |
[iv addSubview:self.progressIndicator]; | |
self.progressIndicator.style = NSProgressIndicatorBarStyle; | |
self.progressIndicator.indeterminate = NO; | |
self.progressIndicator.minValue = 0.0; | |
self.progressIndicator.maxValue = 1.0; | |
NSApplication.sharedApplication.dockTile.contentView = iv; | |
[self setNumberOfTasks:3]; |
This file contains hidden or 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 'rubygems' | |
require 'rbvmomi' | |
require 'pp' | |
require 'alchemist' | |
hyper = 'thunder03' | |
vim = RbVmomi::VIM.connect :host => hyper, :user => 'root', :password => 'secret', :insecure => true | |
# | |
# get current time |
This file contains hidden or 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
- sudo apt-get install rubygems | |
- sudo gem install prawn | |
- environment.rb: | |
Rails::Initializer.run do |config| | |
config.frameworks -= [ :action_web_service, :action_mailer ] | |
config.load_paths += %W( #{RAILS_ROOT}/extras ) | |
config.action_controller.session_store = :p_store | |
config.load_paths << "#{RAILS_ROOT}/app/modules" | |
config.gem "prawn" |
This file contains hidden or 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
/** | |
* CSS Box model demo | |
*/ | |
#box { | |
width: 300px; | |
height: 200px; | |
padding: 30px; | |
border-width: 10px; | |
/*box-sizing: border-box;*/ |
This file contains hidden or 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
/* Pure CSS menu demo */ | |
body { | |
font-family: "Trebuchet MS", sans-serif; | |
font-size: 30px; | |
line-height: 1.4 | |
} | |
/* CSS 2 */ | |
.menu-bar { | |
background-color: #666; |
This file contains hidden or 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
/* | |
* Original by Chris Coyier: http://css-tricks.com/examples/RoundOutTabs2 | |
*/ | |
.tabrow { | |
text-align: center; | |
list-style: none; | |
margin: 200px 0 20px; | |
padding: 0; | |
line-height: 24px; | |
height: 26px; |
This file contains hidden or 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
/** | |
* Round Link | |
*/ | |
a.round:link, a.round:visited { | |
width: 140px; | |
color: #fff; | |
font: 28px/30px Arial; | |
text-transform: uppercase; | |
text-shadow: #6f0909 0 -1px 1px; | |
border: 1px solid #6F0909; |