Skip to content

Instantly share code, notes, and snippets.

mihailik

Block or report user

Report or block mihailik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mihailik
mihailik / index.html
Last active Jun 12, 2019
TypeScript play
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TypeScript Play</title>
<link rel="stylesheet" href="https://unpkg.com/codemirror/lib/codemirror.css">
<style>
html {
@mihailik
mihailik / index.html
Last active Dec 2, 2015
disabling keyboard editing via keydown.preventDefault()
View index.html
<html>
<head><title>disabling keyboard editing via keydown.preventDefault()</title></head>
<body>
<h2>disabling keyboard editing via keydown.preventDefault()</h2>
<textarea id=txt></textarea>
<script>
window.onload = function() {
var txt = document.getElementById('txt');
View index.html
<!doctype html>
<title>CodeMirror</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="https://codemirror.net/lib/codemirror.css">
<script src="https://raw.githack.com/mihailik/CodeMirror/patch-7/lib/codemirror.js"></script>
<script src="https://codemirror.net/mode/xml/xml.js"></script>
<script src="https://codemirror.net/mode/javascript/javascript.js"></script>
<script src="https://codemirror.net/mode/css/css.js"></script>
<script src="https://codemirror.net/mode/htmlmixed/htmlmixed.js"></script>
View index.html
<body>
<h2>test</h2>
<pre id=result></pre>
<script>
var result = document.getElementById('result')
try {
var text = (function() { return /\/\*\s*([\s\S]*\S)\s*\*\//.exec(arguments.callee.toString()||[])[1]; /*
{"accountIds":[2340561],"dealIds":["101590127"],"targetWeight":1.0,"standardWeightMultiper":1.0,"weightScalingFactor":0.0,"rebalanceOption":"StandardWeightMuliple","accountRebalance":true}
*/ })();
View index.html
<html>
<head><title>Folding freeze demo</title>
<link rel=stylesheet href='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/lib/codemirror.css'>
<script src='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/lib/codemirror.js'></script>
<link rel=stylesheet href='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/addon/fold/foldgutter.css'>
<script src='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/addon/fold/foldcode.js'></script>
<script src='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/addon/fold/foldgutter.js'></script>
<script src='//cdn.rawgit.com/codemirror/CodeMirror/07779394f3d5b756abc2f54e15999134627436a7/addon/fold/brace-fold.js'></script>
View index.html
<html>
<title>Demo Knockout</title>
<script src="http://knockoutjs.com/downloads/knockout-3.3.0.debug.js"></script>
<h2 data-bind="style: {opacity: Math.random() > 0.5 ? 0.5 : 0.2 }" style="font-size: 120%;">
OK something here
</h2>
<script>
ko.applyBindings({});
</script>
@mihailik
mihailik / index.html
Last active Aug 29, 2015
Recursive let
View index.html
<html>
<pre id=myscriptout>
</pre>
<div id=myout>
</div>
<script id=myfunc type=text>
function ro() {
"use strict";
View index.html
<html>
<pre id=myscriptout>
</pre>
<div id=myout>
</div>
<script id=myfunc type=text>
function ro() {
"use strict";
@mihailik
mihailik / index.html
Last active Aug 29, 2015
Recursive let
View index.html
<html>
<pre id=myscriptout>
</pre>
<div id=myout>
</div>
<script id=myfunc type=text>
function ro() {
"use strict";
You can’t perform that action at this time.