This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation Media Query Preview</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js-object, js-array, js-string, js-number, js-boolean, js-null { | |
display: inline-block; | |
} | |
js-object > *, js-array > * { | |
display: table-row; | |
} | |
js-object > *:before, js-array > *:before { | |
display: table-cell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>iframe</title> | |
<style> | |
#edit { | |
outline: 1px solid #ccc; | |
min-height: 1em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
namespace LosvRLLib { | |
/// <summary> | |
/// Usage: | |
/// <![CDATA[ | |
/// var mapPersistence = new Persistence<Map>(); | |
/// var map = mapPersistence.Load( "map.dat" ); | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.Write( | |
Enumerable | |
.Range( 0, 7 ) | |
.Where( bit => bit % 2 == 0 ) | |
.Aggregate( | |
String.Empty, | |
( result, bit ) => result + ( bit / 2 < 2 ? "apples" : "oranges" ) | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var validChars = ( | |
Enumerable | |
.Range( '0', 10 ) | |
.Concat( Enumerable.Range( 'A', 26 ) ) | |
.Concat( Enumerable.Range( 'a', 26 ) ) | |
.Select( i => (char) i ) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
namespace FileSystemToTree | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/index.js", | |
"stopOnEntry": false, | |
"args": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Predicate<T> { | |
( subject:T ): boolean | |
} | |
interface DomAdapter<TNode, TElementNode> { | |
// is the node a tag? | |
isTag: Predicate<TNode>, | |
// does at least one of passed nodes pass the test? | |
existsOne: ( test:Predicate<TElementNode>, nodes:[TNode] ) => boolean, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const template = data => | |
`<p> | |
Use the <strong>${ data.power }</strong>, ${ data.name }! | |
</p>` | |
document.getElementById( 'target' ).innerHTML = template( {name: "Luke", power: "force"} ) |
OlderNewer