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
| test |
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
| λ ./run-ml-web.sh | |
| Symbol <CFUNCTION load nRequired: 1 hasRest: #f> already exists and it's not objc function, skipping | |
| Symbol <CFUNCTION load nRequired: 1 hasRest: #f> already exists and it's not objc function, skipping | |
| Symbol <CFUNCTION sqrt nRequired: 1 hasRest: #f> already exists and it's not objc function, skipping | |
| Symbol <CFUNCTION abs nRequired: 1 hasRest: #f> already exists and it's not objc function, skipping | |
| Symbol <CFUNCTION abs nRequired: 1 hasRest: #f> already exists and it's not objc function, skipping | |
| Warning: redefining global function /= to <MACRO /=> | |
| Warning: redefining global special lambda to <MACRO lambda> | |
| Warning: redefining global special = to <MACRO => | |
| Warning: redefining global function not-nil? to <COMPILED-FUNCTION not-nil?> |
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 parse | |
| result, utf8 = [], Iconv.new("UTF-8", "UTF-16") | |
| @parsing_string = utf8.iconv(@parsing_string) | |
| # Get all comments (including multiline) | |
| comments = @parsing_string.scan /\*((?:.|[\r\n])*?)\*/ | |
| # Get all key-value pairs | |
| pairs = @parsing_string.scan /\"(.*)\" = \"(.*)\"/ | |
| comments.each_with_index do |comment, 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
| #!/bin/zsh | |
| killall Mail | |
| BEFORE=`ls -lah ~/Library/Mail | grep -E 'Envelope Index$' | awk '{ print $5 }'` | |
| sqlite3 ~/Library/Mail/'Envelope Index' vacuum | |
| AFTER=`ls -lah ~/Library/Mail | grep -E 'Envelope Index$' | awk '{ print $5}'` | |
| echo "before: $BEFORE" | |
| echo "after: $AFTER" |
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
| #pragma mark Runtime stuff | |
| - (void) collectTestClasses | |
| { | |
| int classesCount = 0; | |
| Class * c_list = NULL; | |
| c_list = NULL; | |
| classesCount = objc_getClassList(NULL, 0); | |
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
| indent_align_string=false | |
| indent_braces=false | |
| indent_braces_no_func=false | |
| indent_brace_parent=false | |
| indent_namespace=false | |
| indent_extern=false | |
| indent_class=false | |
| indent_class_colon=false | |
| indent_else_if=false | |
| indent_func_call_param=false |
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 git_prompt_info() { | |
| branch=`(git branch | grep '*' | awk '{print $2}') 2> /dev/null` | |
| if [ -z $branch ]; then | |
| return | |
| fi | |
| echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$branch$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
| } |
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
| char ystring :: isintnumber() | |
| { | |
| char c=true; | |
| int i=0; | |
| if ( (this->symbols[i]=='-') || | |
| (this->symbols[i]=='0') || | |
| (this->symbols[i]=='1') || | |
| (this->symbols[i]=='2') || | |
| (this->symbols[i]=='3') || | |
| (this->symbols[i]=='4') || |
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(newDoc, oldDoc, userCtx) { | |
| if (userCtx.name != "admin") { | |
| throw({forbidden : 'Нет пути!'}); | |
| } | |
| } |
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
| #!/usr/bin/env ruby | |
| # Very simple and dirty json CLI query tool | |
| require 'rubygems' | |
| require 'json' | |
| def numeric?(s) | |
| Float(s) rescue false | |
| end |
OlderNewer