This file contains 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
-- Copyright (c) 2009, Ionut Gabriel Stan. All rights reserved. | |
-- | |
-- Redistribution and use in source and binary forms, with or without modification, | |
-- are permitted provided that the following conditions are met: | |
-- | |
-- * Redistributions of source code must retain the above copyright notice, | |
-- this list of conditions and the following disclaimer. | |
-- | |
-- * Redistributions in binary form must reproduce the above copyright notice, | |
-- this list of conditions and the following disclaimer in the documentation |
This file contains 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
-- Copyright (c) 2009, Ionut Gabriel Stan. All rights reserved. | |
-- | |
-- Redistribution and use in source and binary forms, with or without modification, | |
-- are permitted provided that the following conditions are met: | |
-- | |
-- * Redistributions of source code must retain the above copyright notice, | |
-- this list of conditions and the following disclaimer. | |
-- | |
-- * Redistributions in binary form must reproduce the above copyright notice, | |
-- this list of conditions and the following disclaimer in the documentation |
This file contains 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 | |
/** | |
* Copyright (c) 2009, Ionut Gabriel Stan. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* |
This file contains 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
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif |
This file contains 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
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let colors_name = "twilight" |
This file contains 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
" Vim syntax file | |
" Language: JavaScript | |
" Maintainer: Claudio Fleiner <[email protected]> | |
" Updaters: Scott Shattuck (ss) <[email protected]> | |
" URL: http://www.fleiner.com/vim/syntax/javascript.vim | |
" Changes: (ss) added keywords, reserved words, and other identifiers | |
" (ss) repaired several quoting and grouping glitches | |
" (ss) fixed regex parsing issue with multiple qualifiers [gi] | |
" (ss) additional factoring of keywords, globals, and members | |
" Last Change: 2006 Jun 19 |
This file contains 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> | |
<!-- | |
For more details see: | |
http://stackoverflow.com/questions/952861/targeting-only-firefox-with-css | |
--> | |
<html> | |
<head> | |
<style type="text/css"> | |
@-moz-document url-prefix() { |
This file contains 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
if (typeof IGS == "undefined") { | |
var IGS = {}; | |
} | |
if (typeof trim != "function") { | |
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g,''); | |
} | |
} |
This file contains 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
/** | |
* A JavaScript utility for function currying. Inspired by Haskell's built-in | |
* currying feature. Example: | |
* | |
* var adder = curry(function (a, b, c) { | |
* return a + b + c; | |
* }); | |
* | |
* var add_10 = adder(10); | |
* var add_20 = add_10(10); |
This file contains 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
// BNF parser framework for JavaScript | |
// Oleg Andreev | |
var result = (function(text){ | |
// The Y Combinator | |
var Y=function (gen) { | |
return function(f) {return f(f)}( | |
function(f) { | |
return gen(function() {return f(f).apply(null, arguments)})})} |
OlderNewer