Open up Terminal.app
in your /Applications/Utilities
directory, then type in these commands, one after each other:
-
Create a temporary directory for cycript:
mkdir cycript && cd cycript
-
Pull the latest cycript from cycript.org:
/*------------------------------------*\ | |
$NAV | |
\*------------------------------------*/ | |
/* | |
TAGS: ^lists ^navigation ^text | |
*/ | |
/* | |
As per csswizardry.com/2011/09/the-nav-abstraction | |
*/ | |
.nav{ |
<?php | |
class SlimApp extends \Slim\Slim | |
{ | |
/** | |
* Route Groups | |
* | |
* This is an override for adding the ability to have a callable class | |
* to allow for a pod structure / tree hierarchy with individual classes | |
* containing there own sub routers |
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
gulp.task('build', gulpsync.sync(['unlock', 'compress']), function () { | |
var endpoint = '/apps/' + config.phoneGap.appId; | |
var env = config.ensure.environment(argv.env, argv.debugmode); | |
pgBuild.auth({ token: config.phoneGap.authToken }, function (e, api) { | |
gulp.src('tmp/*.zip').pipe(tap(function (file, t) { | |
var options = { | |
form: { | |
data: { |
A list of resources that aspiring Rails developers can use to learn Rails and other relevant technologies. This list includes some resources that I see recommended all over the web--not all of which I like--as well as some hidden gems that I've found valuable. This list is intended to supplement my blog post here.
<?php | |
namespace <YourNamespace>\Http\Requests; | |
// To validate the content of the JSON body instead of query params, you need to override the getValidatorInstance() method to create the validator instance with $this->json()->all() instead for $this->all() | |
// This way you can keep your Requests as is and just extend this class instead when you need to validate jsonbody instead of query params | |
abstract class JsonBodyRequest extends Request{ | |
/** |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:meta/meta.dart'; | |
import 'dart:convert' show base64; | |
final colorBackground = const Color(0xFFF3F4F7); | |
final colorPrimary = const Color(0xFF35465B); | |
final colorAccent = const Color(0xFF7576FD); | |
final colorGrey = const Color(0xFFA5ADB7); |
Steps to make a Fragment or View to have a Callback to its parent Activity.
Step by step from info taken from here:
http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity
public interface CustomItemClickListener { | |
public void onItemClick(View v, int position); | |
} |