Skip to content

Instantly share code, notes, and snippets.

View kcliu's full-sized avatar

kcliu kcliu

View GitHub Profile
@kcliu
kcliu / cloudSettings
Created March 21, 2018 11:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-21T11:20:32.936Z","extensionVersion":"v2.9.0"}
import styled from 'styled-components';
const isCurrent = (current, key) => current.group === key[0] && current.attr === key[1] ? true : false;
const hoverColor = '#9c9c9c';
const activeColor = '#00bbff';
const pressColor= '#6c6c6c';
export const BorderWrap = styled.div`
position: relative;
@kcliu
kcliu / app.js
Created March 29, 2017 08:22
app params
params: {
template: 0,
avatar: {
name: 'AVATAR NAME',
title: 'TITLE',
color: '#2c2c2c',
background: '#efefef',
},
chatArea: {
background: '#e4e4e4',
import path from 'path';
const config = {
entry: './src/app.js',
output: {
path: './public/build',
filename: 'app.bundle.js',
},
/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
var twoSum = function(nums, target) {
dict = {};
for(i = 0; i < nums.length; i++) {
dict[nums[i]] = i;
@kcliu
kcliu / booking.json
Last active January 15, 2016 07:52
ad booking
{
"campaign_id": "123",
"package": "456",
"creative name": "aaa",
"channels": [
{
"channel_name": "FOX",
"prime_time": [
"2016011504",
"2016011505",
{
"name": "starter-kit",
"private": true,
"version": "0.1.0",
"description": "Scaffolding",
"repository": "",
"scripts": {
"all": "npm run deploy:staging && npm run deploy:production",
"assets": "cp src/assets/* ./dist",
"compile": "webpack --config ./config/webpack.dist.babel.js",
09-23 00:23:16.195: D/lights(1398): set_light_buttons_func: on=6645093 brightness=101
09-23 00:23:16.195: D/lights(1398): set_light_buttons_func: on=16777215 brightness=255
09-23 00:23:16.295: D/View(6611): onTouchEvent: viewFlags: 0x18004001
09-23 00:23:16.295: D/View(6611): onTouchEvent: isFocusable: true, isFocusableInTouchMode: false, isFocused: false; focusTaken: false
09-23 00:23:16.295: I/ActivityManager(1398): Starting activity: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x4000000 cmp=android/com.android.internal.app.ResolverActivity (has extras) } from pid 6611
09-23 00:23:16.395: I/CarouselTimeLog(1565): onStart() finish: 1379866996400
09-23 00:23:16.415: D/ATRecorder(1398): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader@40a624d8
09-23 00:23:16.415: D/WindowManagerImpl(1398): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40de3010
09-23 00:23:16.475: V/ActivityManager(1398): Checking to rest
@kcliu
kcliu / gist:6622606
Last active December 23, 2015 10:39
// build:css(release) css/combined/css_common.css
link(href='css/new_style/style_partner.css', rel='stylesheet', type='text/css')
link(href='css/jquery-ui/custom-theme/jquery-ui-1.8.9.custom.css', rel='stylesheet', type='text/css')
// endbuild
| {if $partner.info.css != ''}
link(href='{$partner.info.css}', rel='stylesheet', type='text/css')
| {/if}
| {if $from == 'facebook'}
link(href='css/new_style/style_fb.css', rel='stylesheet', type='text/css')
| {/if}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<true/>
<key>AnimateDimming</key>
<false/>