Skip to content

Instantly share code, notes, and snippets.

View latachz's full-sized avatar

Kacper Latuszewski latachz

View GitHub Profile
keycode 8 =
keycode 9 = Escape NoSymbol Escape
keycode 10 = 1 exclam 1 exclam
keycode 11 = 2 at 2 at
keycode 12 = 3 numbersign 3 numbersign
keycode 13 = 4 dollar 4 dollar
keycode 14 = 5 percent 5 percent
keycode 15 = 6 asciicircum 6 asciicircum
keycode 16 = 7 ampersand 7 ampersand
keycode 17 = 8 asterisk 8 asterisk
# Compiled using Elchemy v0.6.6
defmodule Elchemy.Macros do
use Elchemy
@moduledoc """
This module is responsible for defining and using macros in Plugins system for Elchemy.
To use this module you need to import it to your module and use its constructs in the
`meta` definition of your module.
test "Formats map type in Capitalize_case to PascalCase" do
assert Format.inspect({:type_name, 1, 2}) == "TypeName 1 2"
end
module Crypto exposing (..)
import Elchemy exposing (..)
type Hashalgorithm
= Sha
crypto_ : String -> a -> a
crypto_ =
ffi ":crypto" "hash"
module Crypto exposing (..)
import Elchemy exposing (..)
type Hashalgorithm
= Md5 | Ripedmd160 | Sha | Sha224 | Sha256 | Sha384 | Sha512
hash : Hashalgorithm -> String -> String
hash =
ffi ":crypto" "hash"
{ status: 200,
statusText: 'OK',
headers:
{ server: 'openresty',
date: 'Thu, 28 Jun 2018 18:12:35 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '442',
connection: 'close',
'x-cache-key':
'/data/2.5/weather?APPID=9ed6e23a1dbe94eedd75474f462f4469&q=poznan,pl',
const Discord = require('discord.js');
const token = 'NTk3NTg3ODA1ODI0MDkwMTQy.XSKTVw.FYiYksnXMGgGMdmUaW3euk1HZPA';
const client = new Discord.Client();
client.on('ready', async () => {
console.log(`Bot is online!`)
})
client.on('message', msg => {

Keybase proof

I hereby claim:

  • I am latachz on github.
  • I am latachz (https://keybase.io/latachz) on keybase.
  • I have a public key ASAGqLa97FSAK3PttFrXq4YcFD3b0PHkgby9b2V5oGv9QAo

To claim this, I am signing this object:

Phoenix 1.4.x to 1.5.0-rc upgrade instructions

Phoenix 1.5 requires Elixir >= 1.7. Be sure your existing version is up to date by running elixir -v on the command line.

Install the new phx.new project generator

$ mix archive.uninstall phx_new
$ mix archive.install hex phx_new 1.5.0-rc.0
IO.inspect("test")