Variables
greeting = "hello"
location = "world"
x = 8
y = 3
| /* lexical grammar */ | |
| %lex | |
| %% | |
| \n return 'NEWLINE'; | |
| <<EOF>> return 'EOF'; | |
| " " return 'INDENT'; | |
| "-" return 'HYPHEN'; | |
| "(" return 'LEFT_PARENTHESIS'; |
| + | |
| - | |
| * | |
| / | |
| % | |
| ^ | |
| | | |
| & | |
| ** | |
| < |
| require "sinatra" | |
| configure do | |
| set :root, "." | |
| set :public_folder, "." | |
| end | |
| # Any post to /save will write data to the path provided. | |
| post '/save' do | |
| data = params["data"] |
| <script>alert("yolo!")</script> |
| // Created by STRd6 | |
| // MIT License | |
| // jquery.paste_image_reader.js | |
| (function($) { | |
| var defaults; | |
| $.event.fix = (function(originalFix) { | |
| return function(event) { | |
| event = originalFix.apply(this, arguments); | |
| if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0) { | |
| event.clipboardData = event.originalEvent.clipboardData; |
| findCondenseOrCreate = (normalizedTag, name, fn) -> | |
| query = new Parse.Query("Category") | |
| query.equalTo "normalizedTag", normalizedTag | |
| query.find | |
| success: (results) -> | |
| [category, duplicates...] = results | |
| # We could try and collect numbers, but we really | |
| # don't care since we should be recounting anyway |
| find . -name "*.[hm]" | while read line; do expand -t 2 "$line" > "$line.new"; mv "$line.new" "$line"; sed -i "" 's/ *$//' "$line"; done |
| #include "Extractor.h" | |
| #include "XModule.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main () | |
| { | |
| XModule* module = new XModule(); | |
| SYSCHAR* fileName = "Greensleeves.xm"; |
| (gdb) break XModule.cpp:1882 | |
| Breakpoint 1 at 0x407d84: file XModule.cpp, line 1882. (2 locations) | |
| (gdb) run | |
| Starting program: /home/daniel/Desktop/milkytracker-0.90.85/src/milkyplay/extractor | |
| Breakpoint 1, XModule (this=0x76c670) at XModule.cpp:1882 | |
| 1882 phead = new TXMPattern[256]; | |
| (gdb) print phead | |
| $1 = (TXMPattern *) 0x0 | |
| (gdb) print header |