vi 7.2 dolazi na macosx-u 10.6.7 ali bez ruby support-a
https://github.com/fesplugas/wip/wiki/Vim-with-Ruby-Support-on-Mac-OS-X
hg clone https://vim.googlecode.com/hg/ vim
| /* | |
| --- | |
| Port from the YUI3 event-simulate functionality to vanilla javascript. | |
| ... | |
| */ | |
| (function(global, document){ | |
| var mix = function(obj1, obj2){ | |
| for (var key in obj2){ | |
| obj1[key] = obj2[key]; |
| #!/usr/bin/env ruby | |
| #-*- coding: utf-8 -*- | |
| def √(n) | |
| Math::sqrt(n) | |
| end | |
| class Numeric | |
| def ±(n) | |
| r = [self + n, self - n] |
| #!/usr/bin/env python2.4 | |
| # This program shows off a python decorator( | |
| # which implements tail call optimization. It | |
| # does this by throwing an exception if it is | |
| # it's own grandparent, and catching such | |
| # exceptions to recall the stack. | |
| import sys | |
| class TailRecurseException: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # written by Arthur Furlan <[email protected]> | |
| from __future__ import with_statement | |
| from fabric.api import * | |
| import socket | |
| import time |
vi 7.2 dolazi na macosx-u 10.6.7 ali bez ruby support-a
https://github.com/fesplugas/wip/wiki/Vim-with-Ruby-Support-on-Mac-OS-X
hg clone https://vim.googlecode.com/hg/ vim
| .container { | |
| line-height: 85px; /* container height */ | |
| } | |
| .element { | |
| display:inline; | |
| display:inline-table; | |
| display:inline-block; | |
| vertical-align:middle; | |
| } |
| map <C-S-Left> <c-w>< | |
| map <C-S-Right> <c-w>> | |
| map <C-S-Up> <c-w>- | |
| map <C-S-Down> <c-w>+ |
| def sum_digits(num): | |
| """ | |
| @param: num number as string | |
| """ | |
| return sum([int(digit) for digit in num]) | |
| def validate(cc_number): | |
| """ | |
| @param: cc_number credit card number as string | |
| """ |
| complete -W "\`grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_-]*$//'\`" make |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main (int argc, char const* argv[]) { | |
| div_t divmod = div(8, 3); | |
| printf("%d - %d", divmod.quot, divmod.rem); | |
| return 0; | |
| } |