Skip to content

Instantly share code, notes, and snippets.

@meain
meain / loading_messages.js
Last active March 19, 2024 18:35
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",

To start using Carthage with a new project:

  1. List your dependencies in a Cartfile. Refer to the Carthage documentation for details.
  2. Run carthage bootstrap --no-build --use-submodules
  3. Create a new workspace.
  4. Drag your existing App project into the workspace.
  5. Drag framework dependency projects from ./Carthage/Checkouts into the workspace.
  6. Go to the General tab of your target properties.
  7. Add framework dependencies to Linked Frameworks and Libraries. They will show up as Workspace frameworks.
  8. Add the same frameworks to Embedded Binaries.
  9. Note, the previous step will probably create duplicates in Linked Frameworks and Libraries. Delete the duplicates.
// properties
@property (strong, nonatomic) IBOutlet UIView *PDFView;
@property (weak, nonatomic) IBOutlet UIView *displayView;
@property (nonatomic, strong) NSData *pdf;
// I have a button on the story board to generate a PDF
// it calls this function
-(IBAction)createAndSendPDF {
self.PDFView.hidden = NO;
@zetachang
zetachang / gist:4111314
Created November 19, 2012 15:37
Instruction on adding a Acknowledgements Settings.bundle
  • To add Settings.bundle in Xcode. Command N and in Resource, choose Settings Bundle .
  • Open Root.plist in source code, paste the code below to replace it,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>PreferenceSpecifiers</key>
	
@bickart
bickart / tincheck.php
Created August 1, 2012 20:44
Example Code to access tincheck.com's webservice
<?php
/**
* August 1, 2012
*
* Jeff Bickart
* Twitter: @bickart
* Blog: http://sugarcrm-dev.blogspot.com/
*
* The following is a example of usage of the tincheck.com web-service to test the ValidateTinName