Script:
cd ${SRCROOT}
if [ -e "Pods" ]
then
pod install
else
touch Pods
// | |
// NSManagedObject+KeyedSubscript.h | |
// | |
// Created by Jeremy Quinn on 25/05/2013. | |
// Copyright (c) 2013 FiveOne.org. All rights reserved. | |
// | |
#import <CoreData/CoreData.h> | |
@interface NSManagedObject (KeyedSubscript) |
- (id)initWithBeer:(BHBeer *)beer | |
{ | |
NSAssert(beer != nil, @"beer is required"); | |
self = [super init]; | |
if (self) { | |
self.beer = beer; | |
} | |
return self; | |
} |
package com.jwo.example.sampleform; | |
import android.annotation.TargetApi; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.text.Editable; | |
import android.text.TextWatcher; |
import android.app.Activity; | |
import android.content.Context; | |
import android.text.InputType; | |
import android.text.TextUtils; | |
import android.view.View; | |
import android.widget.EditText; | |
import com.humaorie.dollar.Dollar; | |
import static com.humaorie.dollar.Dollar.$; |
File > New > Project...
Create a Package.swift
file in your root project directory, add dependencies, then run swift package fetch
on the command line in the same directory. We’re not going to run swift build
because it will just complain.
# Hack to change the Rails cookie serializer from Marshal to JSON and therefore allow the session | |
# to be shared between different languages but also avoid that someone knowing the | |
# cookie secret key could execute arbitrary code on the server by unmarshalling | |
# modified Ruby code added to the session/permanent cookie. | |
# | |
# Note that all users will beed to login again since both the remember me cookie and the session cookies | |
# won't be valid. Note also that the remember me cookie is tested multiple times per request even when it fails. | |
# for performance reasons you might want to delete it if these extra cycles are too costly for you. | |
# | |
# Rails 4 (not tested on Rails 3). |
// Let's define a basic Swift class. | |
class Fruit { | |
var type=1 | |
var name="Apple" | |
var delicious=true | |
} | |
// We can get at some info about an instance of an object using reflect(), which returns a Mirror. | |
reflect(Fruit()).count | |
reflect(Fruit())[1].0 |
;K Line Test created by Sebastianv650 | |
; from https://mattshub.com/2017/10/02/linear-advance/ | |
; updated for PETG temperatures by luisdelarosa (@louielouie) | |
; hotend 240C | |
; bed 85C | |
M107 | |
M83 ; extruder relative mode | |
M104 S240 ; set extruder temp | |
M140 S85 ; set bed temp |
package com.squareup.example; | |
public abstract BaseActivity extends SherlockActivity { | |
private final ScopedBus scopedBus = new ScopedBus(); | |
protected ScopedBus getBus() { | |
return scopedBus; | |
} | |
@Override public void onPause() { |