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
<div> | |
<% if @user.loggedin %> | |
logout | |
<% else %> | |
login | |
<% end %> | |
</div> |
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
# Generated by http://gitignore.io | |
### Java ### | |
*.class | |
# Package Files # | |
*.jar | |
*.war | |
*.ear |
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
package hu.meza; | |
import cucumber.api.java.After; | |
import cucumber.api.java.Before; | |
import cucumber.api.java.en.Then; | |
import cucumber.api.java.en.When; | |
import net.lightbody.bmp.core.har.Har; | |
import net.lightbody.bmp.core.har.HarLog; | |
import net.lightbody.bmp.core.har.HarPage; | |
import net.lightbody.bmp.proxy.ProxyServer; |
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
private String getCreateContentForm(String contentType) { | |
if ("article".equals(contentType)) { | |
return createArticleForm(); | |
} | |
if ("audio".equals(contentType)) { | |
return createAudioForm(); | |
} | |
if ("cartoon".equals(contentType)) { | |
return createCartoonForm(); |
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
Config globalConfig = new Config(); | |
Configuration mainConfigFile = new RequiredConfigurationFile("global.properties"); | |
Configuration devConfigFile = new OptionalConfigurationFile("developer.properties"); | |
globalConfig.add(mainConfigFile); | |
globalConfig.addOverriding(devConfigFile); | |
globalConfig.addHighOrder(new SystemPropertiesConfiguration()); | |
Config localConfig = new Config(globalConfig); |
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
[ | |
{ | |
"title":"Agile Testing & BDD Exchange NYC", | |
"city":"New York", | |
"url":"http://skillsmatter.com/event/agile-testing/agile-testing-bdd-exchange-nyc-2013", | |
"date":"2013/09/20 13:15" | |
}, | |
{ | |
"title":"London Testers Gathering Workshops 2013", | |
"city":"London", |
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> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<textarea id="code" rows=15 cols=45></textarea> | |
<script> |
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
/** | |
* Disclamer: This is sort of a rant, but without any negative feelings towards the creators of the project | |
* in question. | |
* I value their desire to help people write more readable code, and wish there were more people doing this! | |
* The only thing I'm questioning is the ever growing trend of tools over craft. | |
* | |
* This is a mini blog-post in response to https://twitter.com/hhariri/status/435457449232171008 | |
* | |
* The reason I have some negative feelings is that writing readable code is not rocket | |
* science, and with tools like Spek, we're basically allowing people to be ignorant about crafting clean |
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
grunt.loadNpmTasks('grunt-appcache'); // Handles the appcache | |
grunt.loadNpmTasks('grunt-contrib-jshint'); // Checks if javascript codes are nice or not | |
grunt.loadNpmTasks('grunt-contrib-clean'); // Removes generated assets | |
grunt.loadNpmTasks('grunt-contrib-compass'); // Sass shorthands | |
grunt.loadNpmTasks('grunt-contrib-copy'); // Copies files | |
grunt.loadNpmTasks('grunt-contrib-cssmin'); // Minifies CSS | |
grunt.loadNpmTasks('grunt-contrib-watch'); // Watches for changes and acts on them | |
grunt.loadNpmTasks('grunt-css-metrics'); // Makes sure we don't overdo css files |
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
#!/bin/sh | |
# | |
# Pre-commit hooks | |
compileResult=0 | |
# Compress stuff before committing | |
SRC_PATTERN="(\.css|\.scss|\.svg)" | |
git diff --cached --name-only | if egrep "$SRC_PATTERN" | |
then | |
echo "----> Found CSS changes, updating the compressed versions" | |
node_modules/.bin/grunt |