Skip to content

Instantly share code, notes, and snippets.

View richcollins's full-sized avatar

Rich Collins richcollins

View GitHub Profile
HtmlNode := Object clone do(
name ::= "div"
init := method(
self attributes := Map clone
self children := List clone
)
asString := method(
appendHtmlTo(Sequence clone, 0)
anObj := Object clone
anObj do(
for(i, 1, 1,
x := 1
for(j, 1, 1,
y := 1
)
)
)
RenderMan do (
frame := method(fno,
frameBegin(fno)
call evalArgAt(1)
frameEnd
)
)
$sudo du -h /
...
1.6G /
$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.4G 8.7G 240M 98% /
udev 128M 20K 128M 1% /dev
devshm 128M 4.0K 128M 1% /dev/shm
var Rich = SC.Object.create();
Rich.animation = SC.Object.create({
startValue: 0,
endValue: 0,
value: 0,
progress: 0,
period: 1,
framesPerSecond: 60,
transformationType: "sinusoidal",
var Rich = SC.Object.create();
Rich.animation = SC.Object.create({
startValue: 0,
endValue: 0,
value: 0,
progress: 0,
period: 1,
framesPerSecond: 60,
transformationType: "sinusoidal",
<% content_for('body') do %>
<div class="sc-welcome">
<img class="logo" src="<%= static_url('images/sproutcore-logo') %>" />
<div class="message">
<%= checkbox_view :clock_checkbox, :label => "Show Clock", :bind => { :value => 'HelloWorld.appController.isClockShowing' } %>
<%= label_view :my_label, :tag => 'h1', :bind => { :value => 'HelloWorld.appController.greeting' } %>
</div>
</div>
<% end %>
Rich.mainPage = SC.Page.design({
mainPane: SC.MainPane.design(
{
childViews: "box",
box: SC.View.design()
.layout({ left: 0, top: 0, width: 100, height: 100 })
.classNames("box")
})
.layout({ left: 0, right: 0, top: 0, bottom: 0 })
});
$ GIT_TRACE=1 git merge 4396bbd7ff5fe3084c11e0cd11a7928cf77e3755
trace: built-in: git 'merge' '4396bbd7ff5fe3084c11e0cd11a7928cf77e3755'
Bus error
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
window.onload = function()
{