Your challenge is to create a little poker game using any technology of your choice.
Don't worry if you don't know poker, the next paragraph is your best friend.
Your challenge is to create a little poker game using any technology of your choice.
Don't worry if you don't know poker, the next paragraph is your best friend.
const { dirname, sep, join, resolve } = require('path') | |
const { build } = require('esbuild') | |
const { readFile } = require('fs/promises') | |
// TODO: Check how to solve when [dir] or [hash] are used | |
function pinoPlugin(options) { | |
options = { transports: [], ...options } | |
return { | |
name: 'pino', |
#!/usr/bin/env babel-node | |
import request from "request"; | |
import chalkbars from "chalkbars"; | |
process.on("uncaughtException", e =>{ | |
console.log(e); | |
process.exit(2); | |
}); |
@import url(http://fonts.googleapis.com/css?family=Alegreya|Ubuntu:300); | |
.michan-custom{ | |
font-family: Alegreya; | |
font-size: 14pt; | |
line-height: 1.4em; | |
text-align:justify; | |
max-width: 21cm; | |
word-wrap: break-word; | |
margin: 0 auto; |
<!doctype html> | |
<html> | |
<head>Applause Bookmarklet</head> | |
<body> | |
<h1>Applause Bookmarklet</h1> | |
<h2><a href="javascript: (function(){var id=prompt('Enter the Applause bug ID'); if(id && id.length > 0) window.open('https://my.applause.com/u/a#!&view=issues&subview=issues&bugId=' + id, '_blank'); })();">Open a Bug</a></h2> | |
</body> | |
</html> |
#!/bin/bash | |
# Copyright (C) 2014 Shogun <[email protected]> | |
# Run this script with a single argument which is the threshold size. Example: sh cleanup.sh 100k | |
# Find the files to remove | |
files=$(find * -type f -size +$1) | |
echo "Removing $files"; | |
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch $files" --prune-empty --tag-name-filter cat -- --all |
client = Google::APIClient.new(authorization: :oauth_2, application_name: NAME, application_version: VERSION) | |
client.client_id = CLIENT_ID | |
client.client_secret = CLIENT_SECRECT | |
client.authorization.scope = SCOPES | |
authorizer = Clavem::Authorizer.new do |auth, req, res| | |
raise RuntimeError.new if request.query["error"].present? || request.query["code"].blank? | |
client.authorization.code = request.query["code"].to_s | |
client.authorization.fetch_access_token! | |
client.authorization.refresh_token |
--- | |
### Enabled ### | |
ClassVariable: | |
enabled: true | |
exclude: [] | |
DuplicateMethodCall: | |
enabled: true | |
exclude: [] | |
max_calls: 2 | |
allow_calls: [] |
# encoding: utf-8 | |
module Mongoid | |
# Include this module to add automatic sequence feature (also works for _id field, so SQL-Like autoincrement primary key can easily be simulated) | |
# usage: | |
# class KlassName | |
# include Mongoid::Document | |
# include Mongoid::Sequence | |
# ... | |
# field :number, :type=>Integer | |
# sequence :number |