This file contains 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
module Main exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Platform.Sub as Sub | |
import Html.Events exposing (..) | |
import Dict exposing (..) | |
import Debug as D exposing (..) | |
type Msg |
This file contains 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
module Main exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Platform.Sub as Sub | |
import Html.Events exposing (..) | |
import Dict exposing (..) | |
import Debug as D exposing (..) | |
type Msg |
This file contains 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
module.exports = { | |
files: { | |
javascripts: { | |
joinTo: { | |
'js/app.js': ['app/js/initElm.js', 'app/js/elm_pouchdb/elm_pouchdb.js', 'app/js/component_uploader.js', 'app/js/ports.js', 'app/js/main_interop.js'] | |
} | |
}, | |
stylesheets: { | |
joinTo: { | |
'css/app.css': ['app/scss/*.css'], |
This file contains 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
itemListConvos : Model -> ( Convo, String ) -> Html Msg | |
itemListConvos model tup = | |
let | |
convo : Convo | |
convo = | |
Tuple.first tup | |
nameConvo = | |
Utils.getNameOfConvo model.userProfile convo model.usersList |
This file contains 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
# Android SDK setup | |
## Install Java | |
```bash | |
sudo apt-get update | |
sudo dpkg --add-architecture i386 | |
sudo apt-get install libbz2-1.0:i386 | |
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 | |
sudo apt-get install openjdk-8-jdk openjdk-8-jre |
This file contains 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
/* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */ | |
@media (orientation: portrait) { | |
body { | |
-webkit-transform: rotate(-90deg); | |
-moz-transform: rotate(-90deg); | |
-o-transform: rotate(-90deg); | |
-ms-transform: rotate(-90deg); | |
transform: rotate(-90deg); | |
} | |
} |
This file contains 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
ionic cordova run android -l | |
[WARN] Multiple network interfaces detected! | |
You will be prompted to select an external-facing IP for the livereload server that your device or emulator has | |
access to. | |
You may also use the --address option to skip this prompt. | |
? Please select which IP to use: 192.168.1.74 | |
[INFO] Starting app-scripts server: --livereload --l --address 0.0.0.0 --port 8100 --p 8100 --livereload-port 35729 --r | |
35729 --iscordovaserve --externalIpRequired --nobrowser - Ctrl+C to cancel | |
[11:16:37] watch started ... |
This file contains 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
declare var google: any; | |
@IonicPage() | |
@Component({ | |
selector: 'page-photo-on', | |
templateUrl: 'photo-on.html' | |
}) | |
export class PhotoOnPage { | |
public zoomOk: boolean; | |
This file contains 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
install https://www.npmjs.com/package/hammerjs | |
--- | |
Directive: | |
import { Directive, ElementRef } from ''; | |
declare var Hammer; | |
@Directive({ |
This file contains 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
// Import all | |
import Rx from "rxjs/Rx"; | |
Rx.Observable | |
.interval(200) | |
.take(9) | |
.map(x => x + "!!!") | |
.bufferCount(2) | |
.subscribe(::console.log); |
OlderNewer