Skip to content

Instantly share code, notes, and snippets.

View anthonykeane's full-sized avatar

Anthony Keane anthonykeane

  • Kellyville, NSW, Australia
View GitHub Profile
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@anthonykeane
anthonykeane / designer.html
Last active August 29, 2015 14:23
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
/* OctoWS2811 BasicTest.ino - Basic RGB LED Test
http://www.pjrc.com/teensy/td_libs_OctoWS2811.html
Copyright (c) 2013 Paul Stoffregen, PJRC.COM, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@anthonykeane
anthonykeane / criteria.html
Created May 21, 2014 05:06
Ng-repeat code
<ul class="nav nav-tabs">
<li ng-repeat="criteria in criterias track by $index" ng-animate="'animate'">
<a href="#Criteria {{$index+1}}" toggle="on" parent-active-class="active">{{$index+1}}. Criteria
<small><small><div class="star-rating" star-rating rating-value="criteria.assessment_value" data-max="5" data-display="1" ></div></small></small>
</a>
</li>
<li><a href="#Summary" toggle="on" parent-active-class="active">Summary <h3>{{getWeight()| number : 2}}%</h3></a></li>
</ul>
@anthonykeane
anthonykeane / c.css
Created May 21, 2014 05:05
Animation css
.animate.ng-enter,
.animate.ng-leave
{
-webkit-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-moz-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-ms-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-o-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
@anthonykeane
anthonykeane / MainActivity.java
Created September 25, 2013 09:05
Very cool pointer to pointer in java Android
int i = getArguments().getInt(ARG_PLANET_NUMBER);
String planet = getResources().getStringArray(R.array.planets_array)[i];
int imageId = getResources().getIdentifier(planet.toLowerCase(Locale.getDefault()),
"drawable", getActivity().getPackageName());
((ImageView) rootView.findViewById(R.id.image)).setImageResource(imageId);
@anthonykeane
anthonykeane / speedsignfinderActivity.java
Created July 11, 2013 03:27
Pattern Matching OpenCV
// Pattern Matching (very Slow)
int match_method = Imgproc.TM_SQDIFF;
Bitmap mBitmap = BitmapFactory.decodeResource(getResources(),R.drawable.speedlimit55);
//battHeight and battWidth should have the height and width of your bitmap...
Mat mBatt = new Mat(mBitmap.getHeight(), mBitmap.getWidth(), CvType.CV_8UC1);
Utils.bitmapToMat(mBitmap, mBatt);
@anthonykeane
anthonykeane / Samsung S4 Camera List of Modes
Last active December 19, 2015 13:38
Samsung S4 Camera List of Modes
//S4
// [0] = {java.util.HashMap$HashMapEntry@830038207424}"capture-burst-interval-max" -> "10"
// [1] = {java.util.HashMap$HashMapEntry@830040617288}"zoom" -> "0"
// [2] = {java.util.HashMap$HashMapEntry@830040612272}"redeye-reduction-values" -> "enable,disable"
// [3] = {java.util.HashMap$HashMapEntry@830038213592}"max-num-detected-faces-hw" -> "10"
// [4] = {java.util.HashMap$HashMapEntry@830040612656}"scene-detect-values" -> "off,on"
// [5] = {java.util.HashMap$HashMapEntry@830040611760}"qc-camera-features" -> "1"
// [6] = {java.util.HashMap$HashMapEntry@830038209600}"face-detection-values" -> "off,on"
// [7] = {java.util.HashMap$HashMapEntry@830040617032}"whitebalance" -> "auto"
// [8] = {java.util.HashMap$HashMapEntry@830038214104}"max-sharpness" -> "30"
@anthonykeane
anthonykeane / Samsung S3 Camera List of Modes
Last active December 19, 2015 13:38
Samsung S3 Camera List of Modes
//S3
// [0] = {java.util.HashMap$HashMapEntry@830048175056}"preferred-preview-size-for-video" -> "1280x720"
// [1] = {java.util.HashMap$HashMapEntry@830048178024}"zoom" -> "0"
// [2] = {java.util.HashMap$HashMapEntry@830048173904}"max-num-detected-faces-hw" -> "5"
// [3] = {java.util.HashMap$HashMapEntry@830048178280}"zoom-supported" -> "true"
// [4] = {java.util.HashMap$HashMapEntry@830048174288}"metering" -> "center"
// [5] = {java.util.HashMap$HashMapEntry@830048170696}"contrast" -> "2"
// [6] = {java.util.HashMap$HashMapEntry@830048177768}"whitebalance" -> "auto"
// [7] = {java.util.HashMap$HashMapEntry@830048176208}"scene-mode" -> "auto"
@anthonykeane
anthonykeane / Samsung S2 Camera List of Modes
Last active December 19, 2015 13:39
Samsung S2 Camera List of Modes
// S2
// [0] = {java.util.HashMap$HashMapEntry@830026631376}"preferred-preview-size-for-video" -> "640x480"
// [1] = {java.util.HashMap$HashMapEntry@830026633552}"zoom" -> "0"
// [2] = {java.util.HashMap$HashMapEntry@830026630224}"max-num-detected-faces-hw" -> "0"
// [3] = {java.util.HashMap$HashMapEntry@830026634344}"zoom-supported" -> "true"
// [4] = {java.util.HashMap$HashMapEntry@830026633296}"whitebalance" -> "auto"
// [5] = {java.util.HashMap$HashMapEntry@830026632528}"scene-mode" -> "auto"
// [6] = {java.util.HashMap$HashMapEntry@830026629456}"jpeg-quality" -> "100"
// [7] = {java.util.HashMap$HashMapEntry@830026631632}"preview-format-values" -> "yuv420sp,yuv420p,yuv422i-yuyv,yuv422sp,rgb565"
// [8] = {java.util.HashMap$HashMapEntry@830026629712}"jpeg-thumbnail-quality" -> "100"