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
/** | |
* http://gotofritz.net/blog/geekery/rename-files-while-copying-grunt/ | |
*/ | |
module.exports = function( grunt ) { | |
"use strict"; | |
grunt.initConfig({ | |
//copy all css files to sass directory, and rename to .scss | |
copy: { |
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
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
unstage = reset HEAD -- | |
last = log -1 HEAD | |
graph = log --graph | |
amsi = commit --amend --signoff | |
amend = commit --amend |
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
### | |
* Cross Browser XML HTTP Request | |
* https://stackoverflow.com/questions/2557247/easiest-way-to-retrieve-cross-browser-xmlhttprequest | |
* | |
* Gist: https://gist.github.com/michsch/acf8d51039e078f8fe07 | |
### | |
### global | |
ActiveXObject, | |
define, |
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
/** | |
* box-shadow vs filter: drop-shadow | |
*/ | |
body { | |
background: #aaa; | |
font: 16px/1 sans-serif; | |
} | |
div { | |
margin: 100px; |
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 Rails.env == 'development' | |
:css | |
.jw-non-functional { | |
box-shadow: 0 0 6px 4px rgba(255, 127, 80, .6); | |
} | |
- else | |
:css | |
.jw-non-functional { | |
display: none; | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html { | |
font-size: 100%; | |
} | |
html, | |
body { |
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
<html class="no-js" lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS class in HTML</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/main.css"> | |
<script> | |
!function(s,e){'use strict';s=document.getElementsByTagName('html')[0],e=s.className.split(' '),e.indexOf('no-js')>-1&&e.splice(e.indexOf('no-js'),1),-1===e.indexOf('js')&&e.push('js'),s.className=e.join(' ')}() |
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
"paths": { | |
"nunjucks": "../Vendor/nunjucks/dist/js/nunjucks" | |
}, | |
"map": { | |
"*": { | |
"nunjucks": "Service/Factory/nunjucksFactory/nunjucksFactory" | |
}, | |
"Service/Factory/nunjucksFactory/nunjucksFactory" : { | |
"nunjucks" : "nunjucks" | |
} |
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
{ | |
"address": "127.0.0.1", | |
"port": 8080, | |
"data": ".hoodie", | |
"public": "public", | |
"dbUrl": "http://admin:[email protected]:5984/prototype", | |
"adminPassword": "admin", | |
"dbAdapter": "pouchdb-adapter-fs", | |
"inMemory": false, | |
"loglevel": "warn", |
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
const userlikeUrl = '//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/d050a6fa8bdcd3986a4892b683ae79565fa04643cbec254c91b489c49806bdef.js' | |
window.userlikeTrackingEvent = function (event_name, global_ctx, session_ctx) { | |
console.log('userlikeTrackingEvent: name=%s global_ctx=%o session_ctx=%o', | |
event_name, | |
global_ctx, | |
session_ctx | |
) | |
} |