Skip to content

Instantly share code, notes, and snippets.

@mschmulen
mschmulen / Adding-Public-Static-Web.md
Last active January 2, 2016 03:09
Customizing StrongLoop git clone https://gist.github.com/8241887.git Customizing-StrongLoop

Adding A Public Static Web Page to your StrongLoop App

  1. Create a LoopBack App slc lb project myApp
  2. cd in your App cd myApp
  3. Copy the static pages into myApp\public folder:
  • Using curl
curl -O http://startbootstrap.com/downloads/stylish-portfolio.zip
unzip stylish-portfolio.zip && mv stylish-portfolio public && mv public/stylish-portfolio.html public/index.html
@mschmulen
mschmulen / uninstall-strongloop-suite.sh
Created January 3, 2014 19:05
uninstall strongloop suite
#!/bin/sh
(( ${#} > 0 )) || {
echo 'The uninstaller is now trying to remove StrongLoop Suite'
echo 'Press Control-C to quit or Enter to continue the script with sudo: '
read
echo 'Re-running the script with sudo.'
echo 'You may be prompted for a password for the sudo command.'
sudo ${0} sudo
exit $?
}
@mschmulen
mschmulen / MariaDB.md
Last active February 13, 2018 13:33
StrongLoop Datastores git clone https://gist.github.com/8248247.git StrongLoop-DataStores
@mschmulen
mschmulen / auto.sh
Last active August 29, 2015 14:04
e7m scripts for clean build, run and test
# usage:
# mkdir -p ios; cd ios; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/7bc8ddb33cb25df36a6457b6f5c8f29408cde7ca/auto.sh
mkdir -p manufacture; cd manufacture; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.manfuacture.sh | sh
mkdir -p exposure; cd exposure; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.exposure.sh | sh
mkdir -p transport; cd transport; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.transport.sh | sh
@mschmulen
mschmulen / DeepLinkTest.md
Last active August 29, 2015 14:15
Deep Link Test Sheet

yack

##Manufacture App

manufacture:

manufacture://about

manufacture://settings

@mschmulen
mschmulen / Notes.md
Last active August 29, 2015 14:22
WWDC 2015

WWDC 2015

##Swift 2.0

Swift will open source by the end of the year. This will open new markets and ecosystems for swift developers. The focus seems to be in supporting server side Linux. This would enable server side platforms, API tiers and ecosystems to be written in Swift and possibly share code ( similar to how many companies use and share POJO's for both the Android and server side Java code bases ). It seems very likely that a server side Swift framework and platform will emerge in the same way Serverside Node.js JavaScript came from client side JavaScript.

The Language continues to improve and progress with lots of updates and additions: Enums, Scoping, @testable , Rich commenting, SIMDI optimizations, Reflection (via Mirrors API), guard , #available keyword, Error handling, Defer Actions, and Protocol Extensions. Protocol Extensions will possibly have a significant impact on how code is architected in the future ( and as far as I know is Swift only). The progress of the Swift language w

import UIKit
public class MyClass {
private let instanceData:String = "yack"
public typealias COMP_CALLBACK_FUNC = (param:String) ->(String)
public func completionCallback( param:String, completionCallback: COMP_CALLBACK_FUNC )
{
{
"tasks": [
{
"GUID":"12345",
"title":"task1",
"description":"task 1 description"
},
{
"GUID":"12345",
"title":"task1",
@mschmulen
mschmulen / animateCell.swift
Last active October 13, 2016 16:26
animate cell
// If you wanted to smooth in the animation of the tableview cell you can do something like this ...
extension SomeTableViewCell : AnimatedTableViewCellProtocol {
func startAnimation() {
//this scales but it could alpha in as well
self.layer.transform = CATransform3DMakeScale(0.75,0.75,1)
UIView.animateWithDuration(0.20, animations: {
self.layer.transform = CATransform3DMakeScale(1,1,1)
})
@mschmulen
mschmulen / README.md
Last active August 21, 2017 16:47
Mac iOS Development Environment

Manual Install (requires valid Apple ID )

  1. Install Xcode via the App store Xcode You must also open xcode and agree to the license agreement)
  2. Ensure Apple's command line tools are installed xcode-select --install (You must also open xcode and agree to the license agreement ) verify install with xcode-select -p
  3. Install package manager Cocoapods sudo gem install cocoapods its possible to do this without sudo reference CocoaPods Guide for instructions. Verify installation with pod --version
  4. Install package manager and Carthage via Homebrew : brew update and thenbrew install carthage. Verify installation with carthage version
  5. Verify installation by opening Xcode and "create a new Xcode project" -> "Single View (iOS) Application" -> "Build and Run" hotkey: ⌘ + r to build and run in the local simulator.

Ansible Install ( no Apple ID required)

WIP