Skip to content

Instantly share code, notes, and snippets.

View arnoldc's full-sized avatar
🏠
Working from home

Arnold Camas arnoldc

🏠
Working from home
  • Philippines
  • 19:47 (UTC -12:00)
View GitHub Profile
@arnoldc
arnoldc / data-definition.html
Created June 23, 2013 12:06
html: proper way of data definition list
<dl>
<dt> </dt>
<dd> </dd>
<dt> </dt>
<dd> </dd>
<dt> </dt>
<dd> </dd>
</dl>
@arnoldc
arnoldc / text-indent-IE.css
Created June 23, 2013 12:08
css: text-indent for IE
.button{
width:114px;
height:37px;
border: none;
background: transparent url(images/submit_btn.gif) no-repeat center;
overflow: hidden;
text-indent: -999px;
font-size: 0;
@arnoldc
arnoldc / hover-caption-image-css3.css
Created June 23, 2013 12:30
css: hover caption image css3
#feature {
position: relative;
width: 748px;
}
#feature-content{
opacity:0;
position: absolute;
bottom: 0px;
@arnoldc
arnoldc / placeholder-style.css
Created June 27, 2013 10:44
css: Style HTML5 Placeholder
.sb-search-input::-webkit-input-placeholder {
color: #efb480;
}
.sb-search-input:-moz-placeholder {
color: #efb480;
}
.sb-search-input::-moz-placeholder {
color: #efb480;
import { createReducer, createActions } from 'reduxsauce'
import { Map } from 'immutable'
/* ------------- Initial State ------------- */
export const INITIAL_STATE = Map({
properties: null,
})
/* ------------- Types and Action Creators ------------- */
@arnoldc
arnoldc / main.dart
Created October 23, 2020 03:25
SPIKE - Webview flutter
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
@arnoldc
arnoldc / foo.tsx
Last active March 15, 2022 14:43
[React Native] Component Typescript
import React from 'react';
import {View, Text, StyleSheet} from 'react-native';
interface ITest {}
const Foo: React.FC<ITest> = () => {
return (
<View style={styles.container}>
<Text>Hello World </Text>
</View>
@arnoldc
arnoldc / foo.tsx
Last active August 8, 2023 15:10
[React Native] React Context
// ================ EXAMPLE 1
// Context is used to pass data down the component tree without having to thread the props manually through every component.
// ########
interface ITimerContextProps {
handlePause: () => void;
@arnoldc
arnoldc / foo.js
Created October 29, 2021 10:59
[React Native] React Navigation Auth/Registration basic example
// https://snack.expo.dev/@saad-bashar/authentication-flow