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
from collections.abc import Iterable | |
from uuid import uuid4 | |
from hyperdev.base import HyperDevException | |
class FrontendException(HyperDevException): | |
pass |
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
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'> | |
#stars | |
#stars2 | |
#stars3 | |
#title | |
%span | |
PURE CSS | |
%br | |
%span | |
PARALLAX PIXEL STARS |
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
Goals: | |
Easy to learn and use by beginning programmers | |
Easy to relearn and use by "perpetual intermediate" programmers | |
Suitable for use as a front-end language (not in a browser) | |
Not infuriating to advanced programmers | |
Case insensitive (except strings) | |
Everything should be as simple as possible but no simpler | |
High-level design choices: | |
Mostly intended for easy UI programming |
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
% ./venv scheme --program src/arew.scm eval src/bibendum.scm | |
;; ("% scheme is mayonnaise") | |
% ./venv scheme --program src/arew.scm eval src/bibendum.scm | |
;; ("% scheme is tail recursive tail calls have doubts d suggest that mdhughes take the insulting condescenscion elsewhere but call and then you woke up r6rs libraries also can t run benchmarks yet especially east being prefix and suffix") | |
% ./venv scheme --program src/arew.scm eval src/bibendum.scm | |
;; ("% scheme is my proposal for topological sort what does plenken mean") | |
% ./venv scheme --program src/arew.scm eval src/bibendum.scm |
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
# cat foo.scm | |
(define y_foundationdb_status.scm | |
'((cluster (layers (_valid . #t) (_error . "some error description")) (processes ($map_key=zoneid (version . "3.0.0") (machine_id . "0ccb4e0feddb5583010f6b77d9d10ece") (locality ($map_key=localityName . "value")) (class_source ($enum . #("command_line" "configure_auto" "set_class"))) (class_type ($enum . #("unset" "storage" "transaction" "resolution" "proxy" "master" "test"))) (degraded . #t) (roles . #(((query_queue_max . 0) (local_rate . 0) (input_bytes (hz . 0.0) (counter . 0) (roughness . 0.0)) (stored_bytes . 12341234) (kvstore_used_bytes . 12341234) (kvstore_available_bytes . 12341234) (kvstore_free_bytes . 12341234) (kvstore_total_bytes . 12341234) (durable_bytes (hz . 0.0) (counter . 0) (roughness . 0.0)) (queue_disk_used_bytes . 12341234) (queue_disk_available_bytes . 12341234) (queue_disk_free_bytes . 12341234) (queue_disk_total_bytes . 12341234) (role ($enum . #("master" "proxy" "log" "storage" "resolver" "cluster_controller" "data_distributor" "ra |
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 'package) | |
(add-to-list | |
'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(add-to-list | |
'package-archives | |
'("elpy" . "http://jorgenschaefer.github.io/packages/")) |
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
src$ ./run-chibi.sh | |
((json-checks) i_number_double_huge_neg_exp.json) | |
((json-checks) i_number_huge_exp.json) | |
((json-checks) i_number_neg_int_huge_exp.json) | |
((json-checks) i_number_pos_double_huge_exp.json) | |
((json-checks) i_number_real_neg_overflow.json) | |
((json-checks) i_number_real_pos_overflow.json) | |
((json-checks) i_number_real_underflow.json) | |
((json-checks) i_number_too_big_neg_int.json) | |
((json-checks) i_number_too_big_pos_int.json) |
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 sys | |
from PyQt5.QtGui import * | |
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import QApplication | |
from PyQt5.QtWebKitWidgets import * | |
from lxml import html | |
#Take this class for granted.Just use result of rendering. | |
class Render(QWebPage): | |
def __init__(self, url): |
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 'package) | |
(add-to-list | |
'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(add-to-list | |
'package-archives | |
'("elpy" . "http://jorgenschaefer.github.io/packages/")) |
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
amirouche@neitram:~/tmp$ cat debugproperty.py | |
from traceback import print_stack | |
from weakref import WeakKeyDictionary | |
class DebugProperty: | |
def __init__(self, name): | |
self.name = name | |
self.data = WeakKeyDictionary() |
NewerOlder