I hereby claim:
- I am m242 on github.
- I am mark242 (https://keybase.io/mark242) on keybase.
- I have a public key whose fingerprint is 9E67 F4E8 E4DD CA61 3844 73E7 4086 C28D 52D6 893E
To claim this, I am signing this object:
Array::filter = (f) -> (x for x in @ when f(x)) | |
Number::filter = (f) -> [@.valueOf()].filter f | |
String::filter = Number::filter | |
Object::filter = (f) -> if f(@) then @ else null | |
Array::foreach = (f) -> (f(x) for x in @) | |
Number::foreach = (f) -> [@.valueOf()].foreach f | |
String::foreach = Number::foreach | |
Object::foreach = (f) -> if @ then f(@) else null |
var MyOption, Option; | |
Array.prototype.filter = function(f) { | |
var x, _i, _len, _results; | |
_results = []; | |
for (_i = 0, _len = this.length; _i < _len; _i++) { | |
x = this[_i]; | |
if (f(x)) { | |
_results.push(x); | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Activity Test</title> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> |
package controllers | |
import play.api._ | |
import play.api.cache._ | |
import play.api.libs._ | |
import play.api.mvc._ | |
import play.api.Play.current | |
trait HttpCache { | |
self:Controller => |
name := """test""" | |
version := "1.0-SNAPSHOT" | |
lazy val root = (project in file(".")).enablePlugins(PlayScala) | |
scalaVersion := "2.11.1" | |
libraryDependencies ++= Seq( | |
jdbc, |
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | |
// The Play plugin | |
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.0") | |
// web plugins | |
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0") |
name := "web" | |
version := "2.0" | |
lazy val root = Project(id="web", base=file(".")).enablePlugins(PlayScala) | |
pipelineStages := Seq(uglify, digest, gzip) | |
scalaVersion := "2.11.2" |
var language = (navigator.language || navigator.browserLanguage).toLowerCase(); | |
if (language == "en-gb") { | |
window.location = "https://www.skechers.com/en-gb/"; | |
} |
I hereby claim:
To claim this, I am signing this object:
import Inferno from 'inferno'; | |
import Component from 'inferno-component'; | |
import { Router, Route } from 'inferno-router'; | |
import createBrowserHistory from 'history/createBrowserHistory'; | |
const browserHistory = createBrowserHistory(); | |
class App extends Component { | |
constructor(props) { | |
super(props); |