This file contains hidden or 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
%YAML 1.2 | |
--- | |
name: Mint | |
file_extensions: | |
- mint | |
scope: source.mint | |
variables: | |
variable: '[a-z][A-Za-z_0-9]*' |
This file contains hidden or 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
global _time_load | |
global _cache_flush | |
global _run_attempt | |
extern _bools | |
extern _values | |
extern _pointers | |
section .text |
This file contains hidden or 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
function darkback { | |
osascript -e "tell application \"Terminal\" to set background color of window 1 to {0,0,0}" | |
} | |
function lightback { | |
osascript -e "tell application \"Terminal\" to set background color of window 1 to {65535,65535,65535}" | |
} |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
. | |
.. | |
........ | |
@ | |
* | |
*.* | |
*.*.* | |
🎠|
This file contains hidden or 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
def sqrt(x) | |
square = lambda { |a| a * a } | |
average = lambda { |a,b| (a + b)/2.0 } | |
is_good_enough = lambda { |a| (square[a] - x).abs < 0.001 } | |
improve = lambda { |a| average[a, x/a] } | |
sqrt_iter = lambda { |a| is_good_enough[a] ? a : sqrt_iter[improve[a]] } | |
sqrt_iter[1.0] | |
end |