view release on metacpan or search on metacpan
public/javascripts/ace/mode-autohotkey.js view on Meta::CPAN
define("ace/mode/autohotkey_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var AutoHotKeyHighlightRules = function() {
var autoItKeywords = 'And|ByRef|Case|Const|ContinueCase|ContinueLoop|Default|Dim|Do|Else|ElseIf|EndFunc|EndIf|EndSelect|EndSwitch|EndWith|Enum|Exit|ExitLoop|False|For|Func|Global|If|In|Local|Next|Not|Or|ReDim|Return|Select|Step|Switch|Then|To|Tru...
'Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitRotate|BitShift|BitXOR|BlockInput|Break|Call|CDTray|Ceiling...
'ArrayAdd|ArrayBinarySearch|ArrayConcatenate|ArrayDelete|ArrayDisplay|ArrayFindAll|ArrayInsert|ArrayMax|ArrayMaxIndex|ArrayMin|ArrayMinIndex|ArrayPop|ArrayPush|ArrayReverse|ArraySearch|ArraySort|ArraySwap|ArrayToClip|ArrayToString|ArrayTrim|C...
'ce|comments-end|comments-start|cs|include|include-once|NoTrayIcon|RequireAdmin|' +
'AutoIt3Wrapper_Au3Check_Parameters|AutoIt3Wrapper_Au3Check_Stop_OnWarning|AutoIt3Wrapper_Change2CUI|AutoIt3Wrapper_Compression|AutoIt3Wrapper_cvsWrapper_Parameters|AutoIt3Wrapper_Icon|AutoIt3Wrapper_Outfile|AutoIt3Wrapper_Outfile_Type|AutoIt...
var atKeywords = 'AppDataCommonDir|AppDataDir|AutoItExe|AutoItPID|AutoItUnicode|AutoItVersion|AutoItX64|COM_EventObj|CommonFilesDir|Compiled|ComputerName|ComSpec|CR|CRLF|DesktopCommonDir|DesktopDepth|DesktopDir|DesktopHeight|DesktopRefresh|Deskto...
this.$rules = { start:
[ { token: 'comment.line.ahk', regex: '(?:^| );.*$' },
{ token: 'comment.block.ahk',
regex: '/\\*', push:
[ { token: 'comment.block.ahk', regex: '\\*/', next: 'pop' },
{ defaultToken: 'comment.block.ahk' } ] },
public/javascripts/ace/mode-perl6.js view on Meta::CPAN
"succeed|loop|while|until|repeat|module|use|need|import|require|unit|" +
"constant|enum|multi|return|has|token|rule|make|made|proto|state|augment|" +
"but|anon|supersede|let|subset|gather|returns|return-rw|temp|" +
"BEGIN|CHECK|INIT|END|CLOSE|ENTER|LEAVE|KEEP|UNDO|PRE|POST|FIRST|NEXT|LAST|CATCH|CONTROL|QUIT|DOC"
);
var types = (
"Any|Array|Associative|AST|atomicint|Attribute|Backtrace|Backtrace::Frame|" +
"Bag|Baggy|BagHash|Blob|Block|Bool|Buf|Callable|CallFrame|Cancellation|" +
"Capture|Channel|Code|compiler|Complex|ComplexStr|Cool|CurrentThreadScheduler|" +
"Cursor|Date|Dateish|DateTime|Distro|Duration|Encoding|Exception|Failure|"+
"FatRat|Grammar|Hash|HyperWhatever|Instant|Int|IntStr|IO|IO::ArgFiles|"+
"IO::CatHandle|IO::Handle|IO::Notification|IO::Path|IO::Path::Cygwin|"+
"IO::Path::QNX|IO::Path::Unix|IO::Path::Win32|IO::Pipe|IO::Socket|"+
"IO::Socket::Async|IO::Socket::INET|IO::Spec|IO::Spec::Cygwin|IO::Spec::QNX|"+
"IO::Spec::Unix|IO::Spec::Win32|IO::Special|Iterable|Iterator|Junction|Kernel|"+
"Label|List|Lock|Lock::Async|Macro|Map|Match|Metamodel::AttributeContainer|"+
"Metamodel::C3MRO|Metamodel::ClassHOW|Metamodel::EnumHOW|Metamodel::Finalization|"+
"Metamodel::MethodContainer|Metamodel::MROBasedMethodDispatch|Metamodel::MultipleInheritance|"+
"Metamodel::Naming|Metamodel::Primitives|Metamodel::PrivateMethodContainer|"+
"Metamodel::RoleContainer|Metamodel::Trusting|Method|Mix|MixHash|Mixy|Mu|"+
public/javascripts/ace/mode-perl6.js view on Meta::CPAN
"Semaphore|Seq|Set|SetHash|Setty|Signature|Slip|Stash|Str|StrDistance|Stringy|"+
"Sub|Submethod|Supplier|Supplier::Preserving|Supply|Systemic|Tap|Telemetry|"+
"Telemetry::Instrument::Thread|Telemetry::Instrument::Usage|Telemetry::Period|"+
"Telemetry::Sampler|Thread|ThreadPoolScheduler|UInt|Uni|utf8|Variable|Version|"+
"VM|Whatever|WhateverCode|WrapHandle|int|uint|num|str|"+
"int8|int16|int32|int64|uint8|uint16|uint32|uint64|long|longlong|num32|num64|size_t|bool|CArray|Pointer|"+
"Backtrace|Backtrace::Frame|Exception|Failure|X::AdHoc|X::Anon::Augment|X::Anon::Multi|"+
"X::Assignment::RO|X::Attribute::NoPackage|X::Attribute::Package|X::Attribute::Undeclared|"+
"X::Augment::NoSuchType|X::Bind|X::Bind::NativeType|X::Bind::Slice|X::Caller::NotDynamic|"+
"X::Channel::ReceiveOnClosed|X::Channel::SendOnClosed|X::Comp|X::Composition::NotComposable|"+
"X::Constructor::Positional|X::ControlFlow|X::ControlFlow::Return|X::DateTime::TimezoneClash|"+
"X::Declaration::Scope|X::Declaration::Scope::Multi|X::Does::TypeObject|X::Eval::NoSuchLang|"+
"X::Export::NameClash|X::IO|X::IO::Chdir|X::IO::Chmod|X::IO::Copy|X::IO::Cwd|X::IO::Dir|"+
"X::IO::DoesNotExist|X::IO::Link|X::IO::Mkdir|X::IO::Move|X::IO::Rename|X::IO::Rmdir|X::IO::Symlink|"+
"X::IO::Unlink|X::Inheritance::NotComposed|X::Inheritance::Unsupported|X::Method::InvalidQualifier|"+
"X::Method::NotFound|X::Method::Private::Permission|X::Method::Private::Unqualified|"+
"X::Mixin::NotComposable|X::NYI|X::NoDispatcher|X::Numeric::Real|X::OS|X::Obsolete|X::OutOfRange|"+
"X::Package::Stubbed|X::Parameter::Default|X::Parameter::MultipleTypeConstraints|"+
"X::Parameter::Placeholder|X::Parameter::Twigil|X::Parameter::WrongOrder|X::Phaser::Multiple|"+
"X::Phaser::PrePost|X::Placeholder::Block|X::Placeholder::Mainline|X::Pod|X::Proc::Async|"+
"X::Proc::Async::AlreadyStarted|X::Proc::Async::CharsOrBytes|X::Proc::Async::MustBeStarted|"+
public/javascripts/ace/mode-perl6.js view on Meta::CPAN
"bind-stderr|bind-stdin|bind-stdout|bind-udp|bits|bless|block|bool-only|"+
"bounds|break|Bridge|broken|BUILD|build-date|bytes|cache|callframe|calling-package|"+
"CALL-ME|callsame|callwith|can|cancel|candidates|cando|canonpath|caps|caption|"+
"Capture|cas|catdir|categorize|categorize-list|catfile|catpath|cause|ceiling|"+
"cglobal|changed|Channel|chars|chdir|child|child-name|child-typename|chmod|chomp|"+
"chop|chr|chrs|chunks|cis|classify|classify-list|cleanup|clone|close|closed|"+
"close-stdin|code|codes|collate|column|comb|combinations|command|comment|"+
"compiler|Complex|compose|compose_type|composer|condition|config|configure_destroy|"+
"configure_type_checking|conj|connect|constraints|construct|contains|contents|copy|"+
"cos|cosec|cosech|cosh|cotan|cotanh|count|count-only|cpu-cores|cpu-usage|CREATE|"+
"create_type|cross|cue|curdir|curupdir|d|Date|DateTime|day|daycount|day-of-month|"+
"day-of-week|day-of-year|days-in-month|declaration|decode|decoder|deepmap|"+
"defined|DEFINITE|delayed|DELETE-KEY|DELETE-POS|denominator|desc|DESTROY|destroyers|"+
"devnull|did-you-mean|die|dir|dirname|dir-sep|DISTROnames|do|done|duckmap|dynamic|"+
"e|eager|earlier|elems|emit|enclosing|encode|encoder|encoding|end|ends-with|enum_from_value|"+
"enum_value_list|enum_values|enums|eof|EVAL|EVALFILE|exception|excludes-max|excludes-min|"+
"EXISTS-KEY|EXISTS-POS|exit|exitcode|exp|expected|explicitly-manage|expmod|extension|f|"+
"fail|fc|feature|file|filename|find_method|find_method_qualified|finish|first|flat|flatmap|"+
"flip|floor|flush|fmt|format|formatter|freeze|from|from-list|from-loop|from-posix|full|"+
"full-barrier|get|get_value|getc|gist|got|grab|grabpairs|grep|handle|handled|handles|"+
"hardware|has_accessor|head|headers|hh-mm-ss|hidden|hides|hour|how|hyper|id|illegal|"+
public/javascripts/ace/mode-php.js view on Meta::CPAN
],
"current": [
"mixed current(array array_arg)",
"Return the element currently pointed to by the internal array pointer"
],
"date": [
"string date(string format [, long timestamp])",
"Format a local date/time"
],
"date_add": [
"DateTime date_add(DateTime object, DateInterval interval)",
"Adds an interval to the current date in object."
],
"date_create": [
"DateTime date_create([string time[, DateTimeZone object]])",
"Returns new DateTime object"
],
"date_create_from_format": [
"DateTime date_create_from_format(string format, string time[, DateTimeZone object])",
"Returns new DateTime object formatted according to the specified format"
],
"date_date_set": [
"DateTime date_date_set(DateTime object, long year, long month, long day)",
"Sets the date."
],
"date_default_timezone_get": [
"string date_default_timezone_get()",
"Gets the default timezone used by all date/time functions in a script"
],
"date_default_timezone_set": [
"bool date_default_timezone_set(string timezone_identifier)",
"Sets the default timezone used by all date/time functions in a script"
],
"date_diff": [
"DateInterval date_diff(DateTime object [, bool absolute])",
"Returns the difference between two DateTime objects."
],
"date_format": [
"string date_format(DateTime object, string format)",
"Returns date formatted according to given format"
],
"date_get_last_errors": [
"array date_get_last_errors()",
"Returns the warnings and errors found while parsing a date/time string."
],
"date_interval_create_from_date_string": [
"DateInterval date_interval_create_from_date_string(string time)",
"Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string"
],
"date_interval_format": [
"string date_interval_format(DateInterval object, string format)",
"Formats the interval."
],
"date_isodate_set": [
"DateTime date_isodate_set(DateTime object, long year, long week[, long day])",
"Sets the ISO date."
],
"date_modify": [
"DateTime date_modify(DateTime object, string modify)",
"Alters the timestamp."
],
"date_offset_get": [
"long date_offset_get(DateTime object)",
"Returns the DST offset."
],
"date_parse": [
"array date_parse(string date)",
"Returns associative array with detailed info about given date"
],
"date_parse_from_format": [
"array date_parse_from_format(string format, string date)",
"Returns associative array with detailed info about given date"
],
"date_sub": [
"DateTime date_sub(DateTime object, DateInterval interval)",
"Subtracts an interval to the current date in object."
],
"date_sun_info": [
"array date_sun_info(long time, float latitude, float longitude)",
"Returns an array with information about sun set/rise and twilight begin/end"
],
"date_sunrise": [
"mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunrise for a given day and location"
],
"date_sunset": [
"mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunset for a given day and location"
],
"date_time_set": [
"DateTime date_time_set(DateTime object, long hour, long minute[, long second])",
"Sets the time."
],
"date_timestamp_get": [
"long date_timestamp_get(DateTime object)",
"Gets the Unix timestamp."
],
"date_timestamp_set": [
"DateTime date_timestamp_set(DateTime object, long unixTimestamp)",
"Sets the date and time based on an Unix timestamp."
],
"date_timezone_get": [
"DateTimeZone date_timezone_get(DateTime object)",
"Return new DateTimeZone object relative to give DateTime"
],
"date_timezone_set": [
"DateTime date_timezone_set(DateTime object, DateTimeZone object)",
"Sets the timezone for the DateTime object."
],
"datefmt_create": [
"IntlDateFormatter datefmt_create(string $locale, long date_type, long time_type[, string $timezone_str, long $calendar, string $pattern] )",
"* Create formatter."
],
"datefmt_format": [
"string datefmt_format( [mixed]int $args or array $args )",
"* Format the time value as a string. }}}"
],
"datefmt_get_calendar": [
public/javascripts/ace/mode-php.js view on Meta::CPAN
],
"timezone_location_get": [
"array timezone_location_get()",
"Returns location information for a timezone, including country code, latitude/longitude and comments"
],
"timezone_name_from_abbr": [
"string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]])",
"Returns the timezone name from abbrevation"
],
"timezone_name_get": [
"string timezone_name_get(DateTimeZone object)",
"Returns the name of the timezone."
],
"timezone_offset_get": [
"long timezone_offset_get(DateTimeZone object, DateTime object)",
"Returns the timezone offset."
],
"timezone_open": [
"DateTimeZone timezone_open(string timezone)",
"Returns new DateTimeZone object"
],
"timezone_transitions_get": [
"array timezone_transitions_get(DateTimeZone object [, long timestamp_begin [, long timestamp_end ]])",
"Returns numerically indexed array containing associative array for all transitions in the specified range for the timezone."
],
"timezone_version_get": [
"array timezone_version_get()",
"Returns the Olson database version number."
],
"tmpfile": [
"resource tmpfile(void)",
"Create a temporary file that will be deleted automatically after use"
],
public/javascripts/ace/mode-php_laravel_blade.js view on Meta::CPAN
],
"current": [
"mixed current(array array_arg)",
"Return the element currently pointed to by the internal array pointer"
],
"date": [
"string date(string format [, long timestamp])",
"Format a local date/time"
],
"date_add": [
"DateTime date_add(DateTime object, DateInterval interval)",
"Adds an interval to the current date in object."
],
"date_create": [
"DateTime date_create([string time[, DateTimeZone object]])",
"Returns new DateTime object"
],
"date_create_from_format": [
"DateTime date_create_from_format(string format, string time[, DateTimeZone object])",
"Returns new DateTime object formatted according to the specified format"
],
"date_date_set": [
"DateTime date_date_set(DateTime object, long year, long month, long day)",
"Sets the date."
],
"date_default_timezone_get": [
"string date_default_timezone_get()",
"Gets the default timezone used by all date/time functions in a script"
],
"date_default_timezone_set": [
"bool date_default_timezone_set(string timezone_identifier)",
"Sets the default timezone used by all date/time functions in a script"
],
"date_diff": [
"DateInterval date_diff(DateTime object [, bool absolute])",
"Returns the difference between two DateTime objects."
],
"date_format": [
"string date_format(DateTime object, string format)",
"Returns date formatted according to given format"
],
"date_get_last_errors": [
"array date_get_last_errors()",
"Returns the warnings and errors found while parsing a date/time string."
],
"date_interval_create_from_date_string": [
"DateInterval date_interval_create_from_date_string(string time)",
"Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string"
],
"date_interval_format": [
"string date_interval_format(DateInterval object, string format)",
"Formats the interval."
],
"date_isodate_set": [
"DateTime date_isodate_set(DateTime object, long year, long week[, long day])",
"Sets the ISO date."
],
"date_modify": [
"DateTime date_modify(DateTime object, string modify)",
"Alters the timestamp."
],
"date_offset_get": [
"long date_offset_get(DateTime object)",
"Returns the DST offset."
],
"date_parse": [
"array date_parse(string date)",
"Returns associative array with detailed info about given date"
],
"date_parse_from_format": [
"array date_parse_from_format(string format, string date)",
"Returns associative array with detailed info about given date"
],
"date_sub": [
"DateTime date_sub(DateTime object, DateInterval interval)",
"Subtracts an interval to the current date in object."
],
"date_sun_info": [
"array date_sun_info(long time, float latitude, float longitude)",
"Returns an array with information about sun set/rise and twilight begin/end"
],
"date_sunrise": [
"mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunrise for a given day and location"
],
"date_sunset": [
"mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunset for a given day and location"
],
"date_time_set": [
"DateTime date_time_set(DateTime object, long hour, long minute[, long second])",
"Sets the time."
],
"date_timestamp_get": [
"long date_timestamp_get(DateTime object)",
"Gets the Unix timestamp."
],
"date_timestamp_set": [
"DateTime date_timestamp_set(DateTime object, long unixTimestamp)",
"Sets the date and time based on an Unix timestamp."
],
"date_timezone_get": [
"DateTimeZone date_timezone_get(DateTime object)",
"Return new DateTimeZone object relative to give DateTime"
],
"date_timezone_set": [
"DateTime date_timezone_set(DateTime object, DateTimeZone object)",
"Sets the timezone for the DateTime object."
],
"datefmt_create": [
"IntlDateFormatter datefmt_create(string $locale, long date_type, long time_type[, string $timezone_str, long $calendar, string $pattern] )",
"* Create formatter."
],
"datefmt_format": [
"string datefmt_format( [mixed]int $args or array $args )",
"* Format the time value as a string. }}}"
],
"datefmt_get_calendar": [
public/javascripts/ace/mode-php_laravel_blade.js view on Meta::CPAN
],
"timezone_location_get": [
"array timezone_location_get()",
"Returns location information for a timezone, including country code, latitude/longitude and comments"
],
"timezone_name_from_abbr": [
"string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]])",
"Returns the timezone name from abbrevation"
],
"timezone_name_get": [
"string timezone_name_get(DateTimeZone object)",
"Returns the name of the timezone."
],
"timezone_offset_get": [
"long timezone_offset_get(DateTimeZone object, DateTime object)",
"Returns the timezone offset."
],
"timezone_open": [
"DateTimeZone timezone_open(string timezone)",
"Returns new DateTimeZone object"
],
"timezone_transitions_get": [
"array timezone_transitions_get(DateTimeZone object [, long timestamp_begin [, long timestamp_end ]])",
"Returns numerically indexed array containing associative array for all transitions in the specified range for the timezone."
],
"timezone_version_get": [
"array timezone_version_get()",
"Returns the Olson database version number."
],
"tmpfile": [
"resource tmpfile(void)",
"Create a temporary file that will be deleted automatically after use"
],
public/javascripts/ace/mode-vbscript.js view on Meta::CPAN
"support.class.collection.asp": "Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables",
"support.constant.asp": "TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute"
+ "|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout",
"support.function.asp": "Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog"
+ "|BinaryWrite|Clear|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex",
"support.function.event.asp": "Application_OnEnd|Application_OnStart"
+ "|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart",
"support.function.vb.asp": "Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng"
+ "|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial"
+ "|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency"
+ "|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex"
+ "|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric"
+ "|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim"
+ "|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace"
+ "|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion"
+ "|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse"
+ "|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year",
"support.type.vb.asp": "vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|"
+ "int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday"
+ "|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek"
+ "|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger"
public/javascripts/ace/mode-visualforce.js view on Meta::CPAN
}, {
defaultToken: options.token
}]
};
}
var VisualforceHighlightRules = function() {
var keywordMapper = this.createKeywordMapper({
"variable.language":
"$Action|$Api|$Component|$ComponentLabel|$CurrentPage|$FieldSet|$Label|$Label|" +
"$ObjectType|$Organization|$Page|$Permission|$Profile|$Resource|$SControl|" +
"$Setup|$Site|$System.OriginDateTime|$User|$UserRole|" +
"Site|UITheme|UIThemeDisplayed",
"keyword":
"",
"storage.type":
"",
"constant.language":
"true|false|null|TRUE|FALSE|NULL",
"support.function":
"DATE|DATEVALUE|DATETIMEVALUE|DAY|MONTH|NOW|TODAY|YEAR|BLANKVALUE|ISBLANK|" +
"NULLVALUE|PRIORVALUE|AND|CASE|IF|ISCHANGED|ISNEW|ISNUMBER|NOT|OR|ABS|" +
public/javascripts/ace/snippets/django.js view on Meta::CPAN
${1:FIELDNAME} = models.AutoField(${2})\n\
snippet bool\n\
${1:FIELDNAME} = models.BooleanField(${2:default=True})\n\
snippet char\n\
${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})\n\
snippet comma\n\
${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})\n\
snippet date\n\
${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
snippet datetime\n\
${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
snippet decimal\n\
${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})\n\
snippet email\n\
${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})\n\
snippet file\n\
${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})\n\
snippet filepath\n\
${1:FIELDNAME} = models.FilePathField(path=${2:\"/abs/path/to/dir\"}${3:, max_length=100}${4:, match=\"*.ext\"}${5:, recursive=True}${6:, blank=True, })\n\
snippet float\n\
${1:FIELDNAME} = models.FloatField(${2})\n\
public/javascripts/ace/worker-javascript.js view on Meta::CPAN
isGlobal = true;
}
}
return isGlobal;
}
function findNativePrototype(left) {
var natives = [
"Array", "ArrayBuffer", "Boolean", "Collator", "DataView", "Date",
"DateTimeFormat", "Error", "EvalError", "Float32Array", "Float64Array",
"Function", "Infinity", "Intl", "Int16Array", "Int32Array", "Int8Array",
"Iterator", "Number", "NumberFormat", "Object", "RangeError",
"ReferenceError", "RegExp", "StopIteration", "String", "SyntaxError",
"TypeError", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray",
"URIError"
];
function walkPrototype(obj) {
if (typeof obj !== "object") return;
return obj.right === "prototype" ? obj : walkPrototype(obj.left);