Skip to content

Instantly share code, notes, and snippets.

@CarterTsai
CarterTsai / IME-Event-Handle.markdown
Created November 24, 2013 16:56
A Pen by CarterTsai.

IME Event Handle

When using an Input method editor (IME) to input text. The event will be fired

A Pen by CarterTsai on CodePen.

License.

@CarterTsai
CarterTsai / index.html
Created December 2, 2013 16:27
A Pen by CarterTsai.
<div class="box">
<div class="fixed w15em">
<h3> Do </h3>
</div>
<div class="fixed w20em">
<h3> Re </h3>
</div>
<div class="fixed w5em">
<h3> Mi </h3>
</div>
@CarterTsai
CarterTsai / chart-example.markdown
Created December 8, 2013 18:05
A Pen by CarterTsai.
* {
font-family: 'Oxygen', sans-serif;
font-size: 18px;
}
.icon.edit {
font-size: 25px;
color: #000;
text-decoration: none;
}
@CarterTsai
CarterTsai / index.html
Created December 22, 2013 14:45
A Pen by CarterTsai.
<link href='http://fonts.googleapis.com/css?family=Chau+Philomene+One' rel='stylesheet' type='text/css'>
<div class="slider">
<div class="bar">
<ul>
<li class='active'> <a href="#">1999</a> </li>
<li> <a href="#">2000</a></li>
<li> <a href="#">2011</a> </li>
<li> <a href="#">2012</a> </li>
<li> <a href="#">2013</a> </li>
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
@CarterTsai
CarterTsai / README.md
Created January 5, 2014 01:55 — forked from sma/README.md

Java to Dart

This is an ad-hoc Java-to-Dart translator originally written on two (admittedly long) evenings.

See http://sma.github.io/stuff/java2dartweb/java2dartweb.html for a demo.

Note: It doesn't support the complete Java grammar specification and cannot translate everything. It only translates syntax and does not attempt to translate Java library classes and methods to Dart equivalents (with the exception of String.charAt and StringBuffer.append). You will have to make changes to the resulting Dart code. It does not support anonymous inner classes.

However, I was able to successfully convert a 7000+ line command line application with only minimal fixes in 30 minutes.

@CarterTsai
CarterTsai / Icon-animation.markdown
Created January 22, 2014 15:44
A Pen by CarterTsai.