Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| class ModuleParser | |
| def initialize | |
| @ast_prog = nil | |
| @ast_queue = Array.new | |
| @any_text = SeqRule.new(:line, [Any]) | |
| @ignore_rest = RepRule.new(:line, @any_text) | |
| pri_type = AltRule.new(:line, [Literal["i64"], Literal["i32"], Literal["i8"], Literal["i1"], Literal["void"], Literal["double"], Literal["float"]]) | |
| pointers = RepRule.new(:line, SeqRule.new(:line, [Literal['*']]), [], lambda {|w| return w[0]!='*'}) |
| #!/usr/bin/python | |
| """ | |
| For more information, see: https://help.ubuntu.com/community/SlideshowWallpapers | |
| # 1: Create the following xml file to add wallpaper slideshow | |
| ~/.local/share/gnome-background-properties/MyFirstSlideshowCollection.xml | |
| With the following content: | |
| <?xml version="1.0" encoding="UTF-8"?> |
| a.out | |
| out | |
| *.txt | |
| \#*# | |
| ~ |
| getting analysis usage | |
| Running Split BB Pass | |
| split on priv_raise in foo | |
| split on priv_raise in foo | |
| split on priv_raise in foo | |
| split on priv_raise in bar | |
| split on priv_raise in nothing | |
| split on priv_lower in foo |
| // More details on http://howtowriteaprogram.blogspot.com/2010/11/lisp-interpreter-in-90-lines-of-c.html | |
| // Scheme Interpreter in 90 lines of C++ (not counting lines after the first 90). | |
| // Inspired by Peter Norvig's Lis.py. | |
| // Made by Anthony C. Hay in 2010. See http://howtowriteaprogram.blogspot.co.uk/ | |
| // This is free and unencumbered public domain software, see http://unlicense.org/ | |
| // This code is known to have faults. E.g. it leaks memory. Use at your own risk. | |
| #include <iostream> |
| ''' | |
| Credits: This challenge has appeared in a google competition before. | |
| Once upon a time in a strange situation, people called a number ugly if it was divisible by any of the one-digit primes (2, 3, 5 or 7). Thus, 14 is ugly, but 13 is fine. 39 is ugly, but 121 is not. Note that 0 is ugly. Also note that negative numbers can also be ugly: -14 and -39 are examples of such numbers. | |
| One day on your free time, you are gazing at a string of digits, something like: | |
| 123456 | |
| You are amused by how many possibilities there are if you are allowed to insert plus or minus signs between the digits. For example you can make: | |
| 1 + 234 - 5 + 6 = 236 | |
| which is ugly. Or |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Install melpa | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| (when (>= emacs-major-version 24) | |
| (require 'package) | |
| (add-to-list | |
| 'package-archives | |
| '("melpa" . "http://melpa.org/packages/") | |
| t) | |
| (package-initialize)) |
| #!/usr/bin/env python | |
| import cgi | |
| import json | |
| import time | |
| import random | |
| print("Content-type:text/json\n") | |
| form = cgi.FieldStorage() |
I hereby claim:
To claim this, I am signing this object: