Skip to content

Instantly share code, notes, and snippets.

// AMD
require(['tree'], function(tree) {
// ### Features
// Style?
tree(a).eql(b)
tree.ck(a, '===', b)
// #### Asserts
Wizek@Wizek-PS7-SSD /cygdrive/e/Work Area/Code/Tree
$ git submodule add https://github.com/jquery/jquery.git ./lib/jquery/
Cloning into lib/jquery...
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: /usr/ssl/certs
while accessing https://github.com/jquery/jquery.git/info/refs
fatal: HTTP request failed
Clone of 'https://github.com/jquery/jquery.git' into submodule path 'lib/jquery' failed
[Sun Sep 25 22:25:04 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Sep 25 22:25:04 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 25 22:25:04 2011] [notice] Digest: done
[Sun Sep 25 22:25:08 2011] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 25 22:25:08 2011] [notice] Server built: Sep 10 2011 11:34:11
[Sun Sep 25 22:25:08 2011] [notice] Parent: Created child process 2872
[Sun Sep 25 22:25:09 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 25 22:25:09 2011] [notice] Digest: done
[Sun Sep 25 22:25:10 2011] [notice] Child 2872: Child process is running
[Sun Sep 25 22:25:10 2011] [notice] Child 2872: Acquired the start mutex.
  • Első kör
    • Navigációs funkció esetek, akciók
      • Mozgás
        • a. Felfele és lefele mozgás a látható sorra ugrik hogy érted, hogy látható? Ami felette vagy alatta van, függetlenül a szintjétől?
        • b. Azonos szintre fel- és leugrik a kurzor ez miben más, mint az előző? Hogy ez azonos szintre megy csak?
        • c. Szülő sorra ugrik
        • d. Gyerek sorra ugrik
        • e. Jobbra nyíl, ha tud menni gyereke akkor arra megy vagy nyit, ha nem akkor újat kezd (ez már edit mód)
        • f. Balra nyíl aktuális szülőre ugrik
  • Mit hagy nyitva és mit zár Kiinduló és célpontkezelés Ezt általános beállításra javaslom, és ki is jelezni valahol:
tree._helpers.deepEql = function (x1, x2) {
var t1 = typeof x1
var t2 = typeof x2
if (t1 !== t2) {
return false
} else if (
t1 == 'string' ||
(t1 == 'number' && !isNaN(x1)) ||
t1 == 'boolean' ||
t1 == 'undefined' ||
@Wizek
Wizek / object-watch.js
Created December 28, 2011 13:39 — forked from eligrey/object-watch.js
object.watch polyfill
// Cross-browser object.watch and object.unwatch
// object.watch
if (!Object.prototype.watch) {
Object.prototype.watch = function (prop, handler) {
var oldval = this[prop], newval = oldval,
getter = function () {
return newval;
},
setter = function (val) {
window.itemView = Backbone.View.extend({
el:$('<ul>').appendTo('body')
, events: {
// 'change':'enter'
'keyup ul>li>div':'enter'
}
, initialize: function() {
console.log('init')
// _.bindAll(this, 'enter')
this.render()
~/Work Area/Code/Tree (master) $ git gc
error: bad ref for refs/remotes/origin/WIP (Wizek-LT-PC)
error: bad ref for refs/remotes/origin/WIP (Wizek-LT-PC)
Counting objects: 354, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (339/339), done.
Writing objects: 100% (354/354), done.
Total 354 (delta 209), reused 29 (delta 7)
error: bad ref for refs/remotes/origin/WIP (Wizek-LT-PC)
# pack-refs with: peeled
0a8e80037cca99eb4c262961191af65e463ce63a refs/heads/master
e6949ff019b1922ac99c2e6c4f2548d7088d2d4d refs/remotes/origin/WIP
189568ef75e0647b07c70e7e65e7e1bc6e8dfde6 refs/remotes/origin/fodinak
0a8e80037cca99eb4c262961191af65e463ce63a refs/remotes/origin/master
bab2f92a442af0a38199aa18baa9c545d922b3cf refs/stash
674c2f753942e3a5d3d429865629a8a0229924ae refs/tags/v0.2
window.Node = Backbone.Model.extend({
defaults: function() {
var o = {
headline: ''
, body: ''
, createdAt: new Date()
, updatedAt: new Date()
, position: 2147483648 //Math.round((0+(Math.pow(2,32)-1))/2)
, children: new Children()
, expanded: true