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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *) platform; |
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
<?php | |
// Require the Slim Framework | |
require('Slim/Slim.php'); | |
// Require the custom View | |
require_once('SlimViews/SmartyView.php'); | |
$app = new Slim(array( | |
'debug' => true, | |
'templates.path' => '../templates', |
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
array(1) { | |
["gameimage"]=> | |
array(1) { | |
["name"]=> | |
string(10) "simple.pdf" | |
} | |
} | |
<hr><form name="upload-image-form" enctype="multipart/form-data" method="post"> | |
<input type="file" name="gameimage" size="30" /> |
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
//* | |
NSLog(@"code block 1"); | |
/*/ | |
NSLog(@"code block 2"); | |
//*/ |
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
➜ bundle && rake | |
Resolving dependencies... | |
Using rake (10.0.3) | |
Using i18n (0.6.4) | |
Using multi_json (1.7.1) | |
Using activesupport (3.2.9) | |
Using builder (3.0.4) | |
Using activemodel (3.2.9) | |
Using erubis (2.7.0) | |
Using journey (1.0.4) |
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
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p429.tar.gz | |
tar -xvzf ruby-1.9.3-p429.tar.gz | |
cd ruby-1.9.3-p429/ | |
./configure --prefix=/usr/local | |
make | |
make install |
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
$ knife ec2 server create \ | |
--region eu-west-1 \ | |
--availability-zone eu-west-1a \ | |
--node-name foo \ | |
--flavor t1.micro \ | |
--image ami-ab6170df \ | |
--identity-file ~/.ssh/aws.pem \ | |
--run-list "role[database]" \ | |
--ssh-user ubuntu | |
ERROR: Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request) |
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
<?php | |
use Way\Tests\Should; | |
use Way\Tests\Assert; | |
use Mockery as m; | |
class WrapperTest extends PHPUnit_Framework_Testcase { | |
public function tearDown() | |
{ |
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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
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
echo "sterreich" | |
echo "sterreich"" |
OlderNewer