Skip to content

Instantly share code, notes, and snippets.

View RaymondLim's full-sized avatar

Raymond Lim RaymondLim

  • Adobe Systems, Inc.
View GitHub Profile
@RaymondLim
RaymondLim / InlineWidget.html
Created July 8, 2014 20:17
Inline Widget Example
<!doctype html>
<html>
<head>
<title>CodeMirror line widget / wordwrap issue</title>
<script src="http://codemirror.net/lib/codemirror.js"></script>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css">
<style type="text/css">
.CodeMirror {
margin: 0;
border: 0;
@RaymondLim
RaymondLim / CM right click issue
Created May 17, 2014 20:45
Test file for CM right click issue
<!doctype html>
<html>
<head>
<title>CodeMirror Context Menu Issue</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://codemirror.net/lib/codemirror.js"></script>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css">
</head>
<body>
@RaymondLim
RaymondLim / circle.html
Created April 25, 2014 16:25
Shapes editor test file
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<style>
.shape {
width: 400px;
height: 400px;
shape-inside: circle(50% at 50% 50%);
}
@RaymondLim
RaymondLim / brackets_crash_log.txt
Created April 7, 2014 20:31
Crash log for shapes editor testing.
Process: Brackets Helper [697]
Path: /Users/USER/*/Brackets.app/Contents/Frameworks/Brackets Helper.app/Contents/MacOS/Brackets Helper
Identifier: org.cef.cefclient.helper
Version: ???
Code Type: X86 (Native)
Parent Process: Brackets [692]
User ID: 501
Date/Time: 2014-04-07 13:06:22.395 -0700
OS Version: Mac OS X 10.8.5 (12F45)
@RaymondLim
RaymondLim / ellipse-inside.html
Created April 5, 2014 04:51
Ellipse-inside sample page
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<style>
.shape {
width: 600px;
height: 300px;
shape-inside: ellipse(50% 50% at 50% 50%);
}
@RaymondLim
RaymondLim / brackets.css
Created April 3, 2014 00:15
CSS file generating from brackets.less
/* Generated by less 1.4.2 */
@import "../thirdparty/CodeMirror2/lib/codemirror.css";
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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
@RaymondLim
RaymondLim / main.min.css
Created April 2, 2014 21:13
Minified main.css from Getting Started project
html{background-color:#e6e9e9;background-image:linear-gradient(270deg,#e6e9e9 0,#d8dddd 100%);background-image:-o-linear-gradient(270deg,#e6e9e9 0,#d8dddd 100%);background-image:-moz-linear-gradient(270deg,#e6e9e9 0,#d8dddd 100%);background-image:-webkit-linear-gradient(270deg,#e6e9e9 0,#d8dddd 100%);background-image:-ms-linear-gradient(270deg,#e6e9e9 0,#d8dddd 100%);-webkit-font-smoothing:antialiased}body{margin:0 auto;padding:2em 2em 4em;max-width:800px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5em;color:#545454;-webkit-box-shadow:0 0 2px rgba(0,0,0,0.06);-moz-box-shadow:0 0 2px rgba(0,0,0,0.06);box-shadow:0 0 2px rgba(0,0,0,0.06);background-color:#d90}h1,h2,h3,h4,h5,h6{color:#222;font-weight:600;line-height:1.3em}h2{margin-top:1.3em}a{color:#0083e8}b,strong{font-weight:600}samp{display:none}img{background:transparent;border:10px solid rgba(0,0,0,0.12);border-radius:4px;display:block;margin:1.3em auto;max-width:95%;-webkit-animation:colorize 2s cubic-bezier(0,0,.78
@RaymondLim
RaymondLim / main.js
Created January 9, 2014 20:39
Modified Emmet main.js
define(
['emmet', 'editor', 'preferences', 'file', 'text!keymap.json', 'text!snippets.json'],
function(emmet, editorProxy, preferences, file, keymap, snippets) {
var r = emmet.require;
var _ = r('_');
var isEnabled = true;
var lineBreakSyntaxes = {'html': 1, 'xml': 1, 'xsl': 1};
var _services;
emmet.define('file', file);
@RaymondLim
RaymondLim / tiger.svg
Created December 17, 2013 06:40
SVG file exported from Illustrator.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RaymondLim
RaymondLim / test-active-line.htm
Last active December 15, 2015 14:49
Active line repaint issue.
<!doctype html>
<html>
<head>
<title>Active line repaint bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script src="addon/selection/active-line.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" href="doc/docs.css">