This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library MIME; | |
// get MIME type (returns null if there is no such extension) | |
String mimeType(String extension) => _mimeMaps[extension]; | |
// default MIME type mappings | |
Map _mimeMaps = const { | |
'abs': 'audio/x-mpeg', | |
'ai': 'application/postscript', | |
'aif': 'audio/x-aiff', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#===--- build-script-impl - Implementation details of build-script ---------===# | |
# | |
## This source file is part of the Swift.org open source project | |
## | |
## Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors | |
## Licensed under Apache License v2.0 with Runtime Library Exception | |
## | |
## See http://swift.org/LICENSE.txt for license information | |
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
# Setup architectures, library name and other vars + cleanup from previous runs | |
ARCHS=("armv7" "armv7s" "i386") | |
SDKS=("iphoneos" "iphoneos" "macosx") | |
LIB_NAME="libevent-2.0.21-stable" | |
TEMP_DIR="$(pwd)/tmp" | |
TEMP_LIB_PATH="$(pwd)/tmp/${LIB_NAME}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFragment extends Fragment { | |
MapView mapView; | |
GoogleMap map; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View v = inflater.inflate(R.layout.some_layout, container, false); | |