Skip to content

Instantly share code, notes, and snippets.

@njx
njx / replaceHidden.html
Created March 20, 2012 00:38
CodeMirror bug when deleting text in hidden lines
<!doctype html>
<html>
<head>
<title>CodeMirror: Hidden line bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<style type="text/css">
.CodeMirror {border: 1px solid black;}
</style>
@njx
njx / gist:2308512
Created April 5, 2012 06:43
Hidden line/undo bug
<!doctype html>
<html>
<head>
<title>Hidden line/undo bug</title>
<link rel="stylesheet" href="codemirror.css">
<script src="codemirror.js"></script>
<style type="text/css">
.CodeMirror {border: 1px solid black;}
</style>
</head>
@njx
njx / hiddenSelectAll.html
Created April 5, 2012 06:57
Select all bug with hidden lines
<!doctype html>
<html>
<head>
<title>Hidden line/undo bug</title>
<link rel="stylesheet" href="codemirror.css">
<script src="codemirror.js"></script>
<style type="text/css">
.CodeMirror {border: 1px solid black;}
</style>
@njx
njx / texture.png
Created April 11, 2012 04:52
200x200 transparent noise texture
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQVR4Ae19Xcy3R1H3Xb4E+vRpeehXxDQKpjSRGokBI4XEBCIxRqMHHqCRyEdMlZhiENQeeUIBabQxRWKKGAz1wAMJkZoaTEywNWKMjRKDxqIhNqIS0IrnvL+5cv/2nZ1rZnb2uq7//RTf907u7F77MTu7Ozs7Mzu7/7Ovf/3rZ/L/S7/0Sy9i/FTh2dnZdRnsP//zP3/B937v974gKyN5//iP//hNWZkf+7Efu5Lle3m/8zu/c8Nf/dVfPTfK89LRToSrC4cwnnrqqRczzvA//uM/LjGehX/3d39XKmdh/Nqv/ZqL65133rlr3u+66650Ti0e1e8f/uEfvu71r3/9apyq9beU+9M//dNubH/lV37l+cviiIB99KMfvQmVbmA+Jud5jEfhP//zPz9f533rt35rq6/TTXxBDAQ3hG/qnX33d3/3jUh7tk3HYnyWTTPfHZ4mbzUuGKyGG+Ij2Ev9b/mWb3GJ0rb1tre97crv//7vN/jM9xZ6tIhZZ0/4Pd/zPZd1fWFY+vsU8e/7vu/riDJq48qVKx1uUbks/R3veEdbcF/4wheuz8oyrxHCP/zDPwihte9K/Gd+5mc67vPJT37yFltPCOsrX/mK2zkQ8XACfvd3f/dmC3Pv9xe/+MUO7wq8W2655Vpd7od+6IdeuGXMPvjBDzY4swwBi6Obo2hX+Kmf+qmpxa/7tTWOBb5iUlth/eu//usLdd2vfvWrJWLWdY6KdwviF3/xF68fDS6558c+9rG2Go9CBhO+iEYY7G7h/Nmf/VlH0OA6z2GbWGTXMI7drqVL2u/93u/d+PDDDy91IUItRPNzP/dzNz3++OPhorvvvvtW/UIbN7ENG3LxA6fhTokFERJRlmfbLH6XdjnZuUCQ3cL7gR/4gUWE1WMrbaKP5YX3W7/1W8+9//77G9zrrruuxUf4k8ZG5Ww+8dbpf/M3f
@njx
njx / desktop.css
Created September 22, 2012 00:20
posted from brackets
body {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #000;
background-color: #66B034;
margin: 0px;
padding: 0px;
}
@njx
njx / desktop.css
Created September 22, 2012 00:20
posted from brackets
body {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #000;
background-color: #66B034;
margin: 0px;
padding: 0px;
}
@njx
njx / gist:3977937
Created October 30, 2012 02:19
CM v3 selection bug
/*
* 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
* Software is furnished to do so, subject to the following conditions:
*
@njx
njx / table-test.css
Created November 19, 2012 20:12
Brackets CSS highlighting bug
table {
border: 10px solid #999;
}
#mybox {
margin: 20px;
width: 100px;
height: 100px;
border: 1px solid #f00;
}
@njx
njx / highlight-example.css
Created November 21, 2012 01:40
Simple highlight example
#mybox {
position: absolute;
left: 100px;
top: 100px;
width: 100px;
height: 100px;
border: 1px solid #ccc;
}
@njx
njx / remove-widget.html
Created December 18, 2012 23:56
CodeMirror line widget removal bug
<!doctype html>
<html>
<head>
<title>Widget Removal Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black;}