Skip to content

Instantly share code, notes, and snippets.

View SayChunKim's full-sized avatar
🏠
Baking stuffs

SC Kim SayChunKim

🏠
Baking stuffs
  • Havenice Sdn Bhd
  • Kuala Lumpur
View GitHub Profile
@SayChunKim
SayChunKim / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
@SayChunKim
SayChunKim / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@SayChunKim
SayChunKim / designer.html
Created October 20, 2014 06:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@SayChunKim
SayChunKim / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-pages/core-pages.html">
<polymer-element name="my-element">
@SayChunKim
SayChunKim / e-SMP_.gitignore
Created January 18, 2015 17:18
e-SMP Project Android Demo
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-collapse/iron-collapse.html">
<dom-module id="my-speaker">
<style>
h1 {
font-weight: 200;
font-size: 42px;
position: absolute;
bottom: 64px;
color: white;
package com.example.data.myapplication;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
@SayChunKim
SayChunKim / index.js
Created February 23, 2017 23:40
Data Passing when Angular DOM is ready via GET URL Params (with $viewValue)
// DATA PASSING TO INPUTS when Document Ready
// SITUATION: ngModel != $viewValue <input type="text" name="food_name" ng-model="part1.food_name">
angular.element(document).ready(function($event) {
// Get CURRENT URL Params (May replace with $http request
var url = $location.search();
console.log(url);
// Get name attribute of form element
console.log($scope.userForm);
$scope.$apply(function() {
app.controller('LoginCtrl', ['$scope', '$firebaseAuth', '$location', function($scope, $firebaseAuth, $location) {
// Initialize authObject as
$scope.authObj = $firebaseAuth();
$scope.loginSubmit = function() {
$scope.submitted = true;
console.log($scope);
console.log($scope.player_email + ' ' + $scope.player_password);
$scope.authObj.$signInWithEmailAndPassword($scope.player_email, $scope.player_password).then(function(firebaseUser) {
console.log("User " + firebaseUser.uid + " Signed in!");
@SayChunKim
SayChunKim / MainActivity.java
Created October 18, 2017 21:04
Firebase Realtime Database Workshop
package com.sckim.fbtodoapp;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;