Skip to content

Instantly share code, notes, and snippets.

async function solution (pemain, dadu) {
console.log('Initiating Game')
const initiateGame = () => {
if (pemain <= 1){
console.log('ERROR: Pemain harus lebih dari 1');
return {};
} else {
let obj = {};
for (i=1; i<=pemain; i++){
obj[i] = {
(defn make
"Create the route for the applications"
[service-interceptor]
(expand-routes
[[["/" ^:interceptors [catcher
service-interceptor
(body-params/body-params)
middlewares/cookies
(middlewares/session)
(anti-forgery)
(ns alpha.app.interceptors
(:require [io.pedestal.interceptor :refer [interceptor]]
[alpha.pages.dummy :as tpl]
[alpha.pages.arie :as apages]
[ring.util.response :as ring-resp]
[alpha.database.impl.dumbdb :as dumbdb]
[alpha.database.api.users :as user]
[schema.core :as s]))
(ns alpha.pages.arie
(:require
[hiccup.page :refer [html5]]
[net.cgrand.enlive-html :as enlive :refer [deftemplate defsnippet]]))
;;SNIPPETS
(defsnippet head "build/index.html"
[:head]
[app-state])
<li>
<a href="index.html"></a><div>Games</div>
<ul>
<li><a href="#">
</a><div>Duel</div>
</li>
<li><a href="#">
</a><div>Quizzes</div>
</li>
<li><a href="#">
<li>
<a href="index.html"><div>Games</div></a>
<ul>
<li><a href="#">
<div>Duel</div>
</a></li>
<li><a href="#">
<div>Quizzes</div>
</a></li>
<li><a href="#">
@arie741
arie741 / plugin.js
Created January 13, 2016 10:05
plugin error on middleman
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*