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
| @mixin border_radius($radius, $place=all) | |
| @if $place == top | |
| border-top-right-radius: $radius | |
| border-top-left-radius: $radius | |
| -moz-border-radius-topright: $radius | |
| -moz-border-radius-topleft: $radius | |
| -webkit-border-top-right-radius: $radius | |
| -webkit-border-top-left-radius: $radius | |
| @else if $place == bottom | |
| border-bottom-right-radius: $radius |
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
| if (!window.console) { | |
| window.console = { | |
| log: function() {}, | |
| error: function() {}, | |
| warn: function() {} | |
| } | |
| } |
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
| " Vim syntax file | |
| " Language: LESS Cascading Style Sheets | |
| " Maintainer: Leaf Corcoran <[email protected]> | |
| " Modifier: Bryan J Swift <[email protected]> | |
| " URL: http://leafo.net/lessphp/vim/less.vim | |
| " URL: http://gist.github.com/161047 | |
| " Last Change: 2009 August 4 | |
| " LESS by Leaf Corcoran | |
| " CSS2 by Nikolai Weibull | |
| " Full CSS2, HTML4 support by Yeti |
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
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <[email protected]> | |
| " URL: http://gist.github.com/256840 | |
| " Last Change: 2010 Aug 26 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
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 getScriptPath ( scriptName ) { | |
| $('script').each(function () { | |
| var src = $(this).attr('src'); | |
| if (typeof src == 'string' && | |
| src.indexOf(scriptName) != -1) | |
| return src; | |
| }); | |
| return null; |
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
| var j=document.createElement("SCRIPT"); | |
| j.src="http://code.jquery.com/jquery-latest.pack.js"; | |
| document.getElementsByTagName("HEAD")[0].appendChild(j); |
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
| Dictionary<string, string> jsonObj = new Dictionary<string, string>(); | |
| jsonObj.Add("id", "32"); | |
| jsonObj.Add("end_date", "2011-01-01"); | |
| jsonObj.Add("title", "A titel"); | |
| jsonObj.Add("message", "A message"); | |
| string json = new JavaScriptSerializer().Serialize(json); |
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
| find . -name '*.js' | xargs wc -l |
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
| HttpContext context = HttpContext.Current; | |
| context.Response.Filter = new GZipStream(context.Response.Filter, CompressionMode.Compress); | |
| HttpContext.Current.Response.AppendHeader("Content-encoding", "gzip"); | |
| HttpContext.Current.Response.Cache.VaryByHeaders["Accept-encoding"] = true; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0.811765 0.796078 0.564706 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>Inconsolata - 16.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> | |
| <string>1 1 1 1</string> |
OlderNewer