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
*, *::before, *::after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
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
RewriteEngine On | |
RewriteRule ^(.*)$ http://www.newaddress.com/$1 [L,R=301] |
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
<? | |
Header('HTTP/1.1 301 Moved Permanently'); | |
Header('Location: http://www.your-new-address-here.com'); | |
?> |
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
<% | |
response.setStatus(301); | |
response.setHeader("Location", "http://www.your-new-address-here.com/"); | |
response.setHeader("Connection", "close"); | |
%> |
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
public class Todo { | |
def name | |
def note | |
public static void main(String[] args) { | |
def todos = [ | |
new Todo([name:'1', note:'One']), | |
new Todo([name:'2', note:'Two']), | |
new Todo([name:'3', note:'Three']), |
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
package com.ericsson.tv.saas.portal | |
import org.hibernate.transform.AliasToEntityMapResultTransformer | |
class EventService { | |
def sessionFactory | |
def historyReport(currentUser) { | |
def report = [:] |
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
def "Should return the number of events for each month of all events"() { | |
given: | |
controller.eventService = Mock(EventService) { | |
historyReport() >> [ | |
"2012": ["eventCount" : 6, "monthlyCount" : ["December" : 4, "November" : 1, "January" : 1]], | |
"2011": ["eventCount" : 3, "monthlyCount" : ["October" : 3]] | |
] | |
} | |
when: |
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
return function(scope, element, attrs) { | |
attrs.$observe('key', function(value) { | |
console.log('key=', value); | |
}); | |
} |
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
find | |
^(\s+)?< | |
replace | |
$1'< | |
find | |
>$ | |
replace |
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
.no-selection { | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
OlderNewer