Skip to content

Instantly share code, notes, and snippets.

@granoeste
granoeste / gist:858063
Created March 7, 2011 04:18 — forked from aharisu/gist:857961
[Android][Layout] Tab on the bottom with TabView
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
package net.vvakame.delegatefactory.sample.hide;
/* @hide */
public class Bridge {
public Bridge() {
}
/* @hide */
static Data2 combine(Data1 data) {
@granoeste
granoeste / gist:a91cd8e840ca60e5f0b67ad9c408ec1b
Last active April 24, 2018 08:03 — forked from wshaddix/gist:8797934
Gets the week number for a given date
main () {
// get today's date
var now = new DateTime.now();
// set it to feb 10th for testing
//now = now.add(new Duration(days:7));
int today = now.weekday;
@granoeste
granoeste / index.html
Created October 5, 2020 12:15 — forked from jcollins-g/index.html
Sunflower
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Dr. Fibonacci's Sunflower Spectacular</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@granoeste
granoeste / main.dart
Last active October 5, 2020 12:19 — forked from jcollins-g/index.html
Navigation Drawer
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final appTitle = 'Drawer Demo';
@override
Widget build(BuildContext context) {
return MaterialApp(