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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
class Editor extends React.Component { | |
constructor(props) { | |
super(props); | |
this.inputRef = React.createRef(); | |
this.state = { | |
editMode: false, | |
value: "hello world" |
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
require 'formula' | |
class Node < Formula | |
homepage 'http://nodejs.org/' | |
url 'http://nodejs.org/dist/v0.6.19/node-v0.6.19.tar.gz' | |
sha1 'f6c5cfbadff4788ac3a95f8263a0c2f4e07444b6' | |
head 'https://github.com/joyent/node.git' | |
devel do |
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 _ = require('underscore'); | |
var a = { | |
foo: 'foo' | |
}; | |
var b = { | |
moo: 'moo' | |
}; |
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 https = require('https'), | |
http = require('http'), | |
querystring = require('querystring'); | |
var postData = querystring.stringify({ | |
delimited: 'length', | |
track: '#wow' | |
}); | |
var options = { |
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
YUI().use('app', 'view', function(Y) { | |
// Configure all views | |
/* This one won't work - because Y.HomeView is an instance already | |
Y.HomeView = new Y.View(); | |
Y.HomeView.render = function() { | |
Y.log('inside HomeView'); | |
return this; | |
};*/ |
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> | |
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script> | |
<style> | |
.wrapper { | |
position: relative; | |
width: 300px; | |
border: 1px solid #555; |
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> | |
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script> | |
</head> | |
<body> | |
<div id="marker"></div> | |
<script> | |
YUI().use('node', 'history', function(Y) { |