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
// Use with colour name: .rgba(black, 0.5) or hex value: .rgba(#FF2400, 0.5) | |
.rgba(@colour, @alpha) | |
{ | |
@alphaColour: hsla(hue(@colour), saturation(@colour), lightness(@colour), @alpha); | |
@ieAlphaColour: argb(@alphaColour); | |
background-color: @colour; // Fallback for older browsers | |
background-color: @alphaColour; | |
// IE hacks |
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
>> document.getElementById | |
function getElementById() { [native code] } | |
>> document.getElementById instanceof Function | |
true | |
>> document.getElementById.apply | |
function apply() { [native code] } | |
>> typeof(document.getElementById) | |
"function" | |
>> console.log | |
function log() { [native code] } |
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
Process: Atom [19842] | |
Path: /Applications/Atom.app/Contents/MacOS/Atom | |
Identifier: com.github.atom | |
Version: 1.1.0 (1.1.0) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Atom [19842] | |
User ID: 215897963 | |
Date/Time: 2015-11-02 11:32:50.249 -0800 |
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
var DOCBLOCK_LINES = 5; | |
var first = new sourceMap.SourceMapConsumer(input); | |
var generator = new sourceMap.SourceMapGenerator({ | |
file: first.file, | |
}); | |
first.eachMapping(function(mapping) { | |
generator.addMapping({ | |
generated: { | |
column: mapping.generatedColumn, |
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
/// <summary> | |
/// Copy shared properties from <paramref name="source"/> to <paramref name="dest"/>. | |
/// Shared properties are those that both types have. | |
/// This is similar to AutoMapper which only works on .NET 4 | |
/// </summary> | |
/// <typeparam name="TSource">Source type</typeparam> | |
/// <typeparam name="TDest">Destination type</typeparam> | |
/// <param name="source">Source object</param> | |
/// <param name="dest">Destination object</param> | |
/// <returns>Destination object with all the shared properties copied over</returns> |
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
Option Base 1 | |
Dim cardtxt(23, 3) As String | |
Dim CurPlayer As Integer | |
Dim AmtMoney(4) As Long | |
Dim moved(4) As Integer | |
Dim Level(4) As Integer | |
Dim landowner(7) As Integer | |
Dim colour(4) | |
Dim click1, click2, speed, ended, temp_pic, ok_en, spinner_enabled, won, next_turn | |
Const txt = 1 |
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
# Redirect away from www subdomain | |
server { | |
server_name www.mystatus.im; | |
return 301 http://mystatus.im$request_uri; | |
} | |
server { | |
server_name mystatus.im; | |
root /var/www/mystatus.im/site/public/; | |
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
[program:mystatus] | |
command=node app.js | |
environment=NODE_ENV=production | |
user=www-data | |
directory=/var/www/mystatus.im/ |
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
// HTML5 shim needs to be separate as only IE needs it | |
bundles.AddUrlWithAlias<ScriptBundle>("//html5shim.googlecode.com/svn/trunk/html5.js", "_js/html5shim", bundle => | |
{ | |
bundle.PageLocation = "head"; | |
// Cast to ScriptBundle is a hack until https://github.com/andrewdavey/cassette/pull/384 is fixed | |
((ScriptBundle)bundle).Condition = "lt IE 9"; | |
}); |
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 | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |