Skip to content

Instantly share code, notes, and snippets.

View lkcampbell's full-sized avatar

Lance Campbell lkcampbell

View GitHub Profile
@lkcampbell
lkcampbell / flickering-highlight.js
Created March 7, 2016 19:31
Repro code for Brackets flickering highlight bug
var x = "http://www.foo.com";
var y = "a:";
@lkcampbell
lkcampbell / main.js
Last active November 15, 2015 02:17
Brackets React .jsx language mode
define(function (require, exports, module) {
"use strict";
var LanguageManager = brackets.getModule("language/LanguageManager"),
CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror");
CodeMirror.defineMode("jsx", function (config, parserConfig) {
var jsMode = CodeMirror.getMode(config, "javascript");
var xmlMode = CodeMirror.getMode(config, {
name: "xml",
@lkcampbell
lkcampbell / rectangles.svg
Created May 9, 2014 13:41
Issue file for SVG viewer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkcampbell
lkcampbell / .brackets.json
Created April 1, 2014 22:31
Brackets Project Select Bug Repro
{
"path": {
"**.txt": {
"wordWrap": true
}
}
}
@lkcampbell
lkcampbell / stretch-to-fit.svg
Created April 1, 2014 21:40
Brackets SVG Preview Repro File
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkcampbell
lkcampbell / gist:6263057
Last active December 21, 2015 06:19
Brackets JS Parameter repro
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global window */
(function () {
"use strict";
function displayVarValue(theVar) {
if (typeof theVar === "object") {
console.log(JSON.stringify(theVar));
} else {
@lkcampbell
lkcampbell / gist:5690609
Created June 1, 2013 14:34
Repro for: Showing ruler when cursor is on last line of word wrapped doc bumps cursor down too far
Pariatur magna mentitum, ex summis eruditionem et se singulis eu fabulas,
mentitum iis expetendis et a vidisse praesentibus ab occaecat o lorem, do enim
eruditionem, ut multos arbitrantur.
Ab minim occaecat excepteur de a duis voluptate ingeniis ubi nostrud quorum
multos admodum aliqua, se o fore dolore quis, veniam tempor iis nescius et esse
tractavissent cupidatat esse pariatur, illum aut ullamco, quo anim tempor
cohaerescant.
Litteris sed varias expetendis, excepteur o lorem vidisse id possumus nam
@lkcampbell
lkcampbell / cm-overlay-bug.html
Last active December 17, 2015 17:39
CodeMirror overlay bug test html
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>CodeMirror Test Page</title>
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="lib/codemirror.css">
<style>
.cm-first-two-spaces {border: solid 1px;}
.cm-all-spaces {background-color:red;}
@lkcampbell
lkcampbell / gist:5522297
Last active December 17, 2015 00:39
Repro file for "Tabbing on single-line character range should replace characters with tab" issue
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define */
define(function (require, exports, module) {
"use strict";
var foobar = 0,
bar = 0;
});
@lkcampbell
lkcampbell / gist:5497547
Created May 1, 2013 19:06
Repro file for Inline Editor Horizontal Scroll Bar bug
function foo() {
/*
Hic cillum ubi nisi in summis aut de
culpa expetendis, quid a quo noster
proident, malis sed nescius non quorum.
Sint coniunctione singulis malis
deserunt, a non fugiat vidisse, anim
illustriora nostrud illum appellat,
litteris noster ita laboris consectetur.
Irure aliquip voluptate. Qui noster