Skip to content

Instantly share code, notes, and snippets.

View helderjnpinto's full-sized avatar
☢️

ħþ helderjnpinto

☢️
View GitHub Profile
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
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
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'],
itemListConvos : Model -> ( Convo, String ) -> Html Msg
itemListConvos model tup =
let
convo : Convo
convo =
Tuple.first tup
nameConvo =
Utils.getNameOfConvo model.userProfile convo model.usersList
# 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
@helderjnpinto
helderjnpinto / lock.css
Created June 8, 2017 09:43 — forked from visnup/lock.css
"lock" orientation of a website for mobile (iPad, iPhone)
/* 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);
}
}
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 ...
declare var google: any;
@IonicPage()
@Component({
selector: 'page-photo-on',
templateUrl: 'photo-on.html'
})
export class PhotoOnPage {
public zoomOk: boolean;
install https://www.npmjs.com/package/hammerjs
---
Directive:
import { Directive, ElementRef } from '';
declare var Hammer;
@Directive({
@helderjnpinto
helderjnpinto / index.js
Created August 17, 2017 14:51 — forked from MichalZalecki/index.js
How to import RxJS 5
// Import all
import Rx from "rxjs/Rx";
Rx.Observable
.interval(200)
.take(9)
.map(x => x + "!!!")
.bufferCount(2)
.subscribe(::console.log);