Skip to content

Instantly share code, notes, and snippets.

View jkary's full-sized avatar

Jason Kary jkary

  • Red Hat
  • 00:00 (UTC -04:00)
  • X @jkary
View GitHub Profile
-(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)
//
// main.m
// irssihelper
//
// Created by Daniel on 26.06.11.
// Copyright 2011 3dannalt. All rights reserved.
//
#import <Cocoa/Cocoa.h>
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];
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
- 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"
@jkary
jkary / dabblet.css
Created September 28, 2012 02:06 — forked from LeaVerou/dabblet.css
CSS Box model demo
/**
* CSS Box model demo
*/
#box {
width: 300px;
height: 200px;
padding: 30px;
border-width: 10px;
/*box-sizing: border-box;*/
@jkary
jkary / dabblet.css
Created September 28, 2012 02:03 — forked from bennettmcelwee/dabblet.css
Pure CSS menu demo
/* 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;
@jkary
jkary / gist:3797569
Created September 28, 2012 02:01 — forked from Verhaeg/gist:2005367
CSS: Round out tabs
/*
* 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;
@jkary
jkary / dabblet.css
Created September 28, 2012 02:00 — forked from hanigamal/dabblet.css
CSS Round Link Button
/**
* 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;