Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /** | |
| * Send a GET requst using cURL | |
| * @param string $url to request | |
| * @param array $get values to send | |
| * @param array $options for cURL | |
| * @return string | |
| */ | |
| function curl_get($url, array $get = NULL, array $options = array()) | |
| { | |
| $defaults = array( |
| @interface MultiThreadObject: NSObject | |
| @property (nonatomic, strong) NSArray *data; | |
| @end | |
| @implementation MultiThreadObject | |
| @end |
| new Stack( | |
| children: <Widget>[ | |
| new Positioned.fill( | |
| child: new FadeInImage( | |
| placeholder: new AssetImage('placeholder.png'), | |
| image: new CachedNetworkImageProvider(photos[int].url), | |
| fit: BoxFit.contain, | |
| alignment: Alignment.center, | |
| fadeInDuration: new Duration(milliseconds: 200), | |
| fadeInCurve: Curves.linear, |
| new Stack( | |
| children: <Widget>[ | |
| new Positioned.fill( | |
| child: new FadeInImage( | |
| placeholder: new AssetImage('placeholder.png'), | |
| image: new CachedNetworkImageProvider(photos[int].url), | |
| fit: BoxFit.contain, | |
| alignment: Alignment.center, | |
| fadeInDuration: new Duration(milliseconds: 200), | |
| fadeInCurve: Curves.linear, |
| new Stack( | |
| children: <Widget>[ | |
| new Positioned.fill( | |
| child: new FadeInImage( | |
| placeholder: new AssetImage('placeholder.png'), | |
| image: new CachedNetworkImageProvider(photos[int].url), | |
| fit: BoxFit.contain, | |
| alignment: Alignment.center, | |
| fadeInDuration: new Duration(milliseconds: 200), | |
| fadeInCurve: Curves.linear, |
| // This is a basic Flutter widget test. | |
| // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter | |
| // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to | |
| // find child widgets in the widget tree, read text, and verify that the values of widget properties | |
| // are correct. | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:rxdart/rxdart.dart'; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| - (NSData *)createBodyWithBoundary:(NSString *)boundary | |
| parameters:(NSDictionary *)parameters | |
| paths:(NSArray *)paths | |
| fieldName:(NSString *)fieldName { | |
| NSMutableData *httpBody = [NSMutableData data]; | |
| // add params (all params are strings) | |
| [parameters enumerateKeysAndObjectsUsingBlock:^(NSString *parameterKey, NSString *parameterValue, BOOL *stop) { | |
| [httpBody appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]]; |
| #import <Foundation/Foundation.h> | |
| @interface MisImp : NSObject | |
| - (void)foo; | |
| + (void)fooMethod; | |
| @end | |
| #import "MisImp.h" |