Skip to content

Instantly share code, notes, and snippets.

View chmiiller's full-sized avatar
🦇
Dark theme everything

Carlos Zinato chmiiller

🦇
Dark theme everything
  • TomTom
  • Netherlands
View GitHub Profile
@chmiiller
chmiiller / main.css
Created June 1, 2020 23:06
Aula01_main_css
:root {
--title-color: #322153;
--primary-color: #34cb79;
}
* {
margin: 0;
padding: 0;
}
@chmiiller
chmiiller / index.html
Created June 1, 2020 23:06
Aula01_index_html
<!DOCTYPE html>
<html lang="pt_br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ecoleta</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/styles/main.css">
@chmiiller
chmiiller / alloy.js
Created January 30, 2018 14:47 — forked from SquirrelMobile/alloy.js
Upload large video from Axway Titanium mobile application (iOS / Android) and save the video with PHP script
//Download and install widget loader : https://github.com/FokkeZB/nl.fokkezb.loading
Alloy.Globals.loading = Alloy.createWidget("nl.fokkezb.loading");
@chmiiller
chmiiller / collabsablerows.js
Created January 20, 2017 16:08 — forked from rileydutton/collabsablerows.js
Collapsable/Expandable Table View Rows in Titanium Mobile
var container = Ti.UI.createView({backgroundColor: "white", layout: "vertical"});
var layout = [
{
title: "Parent 1",
isparent: true,
opened: false,
sub: [
{
@chmiiller
chmiiller / rating.js
Last active March 14, 2017 22:50
A draggable and swipeable 5 stars rating view for Android and iOS
var win = Ti.UI.createWindow({
backgroundColor:'#eeeeee'
});
var isAndroid = Ti.Platform.osname == "android";
var starSelectedImage = '/images/ic_star_black.png';
var starOriginalImage = '/images/ic_star_border_black.png';
//icons from Google Material Design (search for the "star" icon): https://design.google.com/icons/
var starWidth = 28;
var coverView = Ti.UI.createView();
@chmiiller
chmiiller / README.md
Created June 8, 2016 13:16 — forked from manumaticx/README.md
Fading ActionBar in Titanium

Fading Actionbar

This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium

fadingactionbar

How this works

This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.

@chmiiller
chmiiller / conversation.js
Created January 18, 2016 15:39
Titanium - Smoothly animating an input field along with the iOS Keyboard.
function init() {
Titanium.App.addEventListener('keyboardframechanged', $.typingArea.animateKeyboard);
}
function scrollToBottom() {
$.listView.scrollToItem(0, $.section.items.length - 1, {
animated : true
});
}
@chmiiller
chmiiller / TiUITabProxy.m
Created January 14, 2016 11:01 — forked from moritzknecht/TiUITabProxy.m
Gesture Fix (Ti. 3.2.2)
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifdef USE_TI_UITAB
#import "TiProxy.h"
#import "TiUITabProxy.h"
@chmiiller
chmiiller / gist:9673255
Created March 20, 2014 20:35
Youtube embed videoplayer
function convert(id){
/*
* using https://github.com/rborn/TitaniumYoutubePlayer
* or
* https://github.com/bob-sims/ytPlayer
*/
Titanium.API.info('Video id ' + id);
var client = Ti.Network.createHTTPClient();