>> array = {}; array[100000000000000000] = 1
=> 1
>> array = []; array[100000000000000000] = 1
irb(16739,0x7fff7de08960) malloc: *** mmap(size=800000000000004096) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
irb(16739,0x7fff7de08960) malloc: *** mmap(size=800000000000004096) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
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
| # sort the files for easier viewing | |
| --sort-files | |
| # all-lower-case is case-insensitive, otherwise it's case sensitive | |
| --smart-case | |
| # show the context of the found item | |
| --context | |
| # Other file types we want to search | |
| --type-set=haml=.haml | |
| --type-set=sass=.sass | |
| --type-set=scss=.scss |
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(e) { | |
| "use strict"; | |
| function t() { | |
| this.data = {} | |
| } | |
| function n() { | |
| this.listeners = new t | |
| } | |
| function r(e) { |
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>Top Diet</title> | |
| <script> | |
| function aobi6q(s) { | |
| var key=96; | |
| var str = decodeURIComponent(s); | |
| var xored = ""; |
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
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="derp" | |
| # Example aliases |
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
| # screw the mouse | |
| set-window-option -g mode-mouse off | |
| # scrollback history | |
| set -g history-limit 5000 | |
| # "I' == current window index | |
| # 'H' == Hostname | |
| # 'F' == current window flag | |
| # 'P' == current pane index |
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
| <?php | |
| class Test{ | |
| public static function __callStatic($method, $arguments) | |
| { | |
| echo $method . PHP_EOL; | |
| } | |
| public function __call($method, $arguments) | |
| { | |
| echo $method . PHP_EOL; | |
| } |
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
| <?php | |
| /* | |
| * I looked into this for a bit and I must say I was a bit confused | |
| * until the answer smacked me in the face. | |
| * | |
| * The 'fn3' isn't doing what you think it's doing. Upon glancing at | |
| * the code it may appear that $this->a['first'] is having the value | |
| * 'foo' appended to it (which doesn't make sense because | |
| * $this->a['first'] is a string, not an array). |
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
| et guifont=Consolas:h18 | |
| set textwidth=80 | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| set spell | |
| set nocompatible | |
| filetype off |