- Ubuntu 14.04, 16.04, or 16.10
- Open up terminal
- Install core deps:
sudo apt-get install clang libicu-dev git
| // | |
| // Screenshot.swift | |
| // | |
| // 1) Take a picture of a UIView | |
| // 2) Take a picture of a UIView's subframe. EG. Fullscreen UIView with a | |
| // small square box in the middle, it will only save what's visible in the box frame | |
| // but not the box itself | |
| import Foundation | |
| import UIKit |
| ''' | |
| Break on Objective-C 's method using its address' | |
| ''' | |
| import shlex | |
| import lldb | |
| import re | |
| def breakonmethod(debugger, command, exe_ctx,result, internal_dict): | |
| args=shlex.split(command) | |
| Class=args[0] | |
| Method=args[1] |
| #!/bin/bash | |
| limit="${1-10000000}"; | |
| echo "Keeping SourceKitService below $limit KiB of virtual memory." | |
| echo "Hit ^C to quit." | |
| while true; do | |
| sleep 1; | |
| p=`pgrep ^SourceKitService$` | |
| if [ -n "$p" ]; then | |
| vsz=`ps -o vsz -p "$p" | tail -1` |
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <unistd.h> | |
| BOOL copy_to_clipboard(NSString *path) | |
| { | |
| // http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
| NSImage * image; | |
| if([path isEqualToString:@"-"]) | |
| { | |
| // http://caiustheory.com/read-standard-input-using-objective-c |
| return new Scaffold( | |
| appBar: new AppBar( | |
| title: new Text("Project Details"), | |
| backgroundColor: Colors.blue[800]), | |
| body: | |
| new CustomScrollView( | |
| slivers: <Widget>[ | |
| new SliverPadding(padding: const EdgeInsets.only(left: 10.0,right: 10.0, | |
| top: 10.0,bottom: 0.0), | |
| sliver: new SliverList(delegate: |
| // Copyright 2017, the Flutter project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new TestApp()); | |
| } |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.