Skip to content

Instantly share code, notes, and snippets.

View latachz's full-sized avatar

Kacper Latuszewski latachz

View GitHub Profile
const ocenyNazwy = { "celujący": 6, "bardzo dobry": 5, "dobry": 4, "dostateczny": 3, "dopuszczający": 2, "niedostateczny": 1 }
const wrapper = document.getElementById("ext-element-199")
let oceny = []
wrapper.childNodes.forEach((element) => {
const przedmiotText = element.querySelector("[id^='ext-element']").innerText
const przedmiot = przedmiotText.split("\n")

Let the force by with Livebook

SWAPI

Mix.install([
  {:tesla, "~> 1.4"},
  {:jason, ">= 1.0.0"},
IO.inspect("test")

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

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:

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 => {
{ 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',
module Crypto exposing (..)
import Elchemy exposing (..)
type Hashalgorithm
= Md5 | Ripedmd160 | Sha | Sha224 | Sha256 | Sha384 | Sha512
hash : Hashalgorithm -> String -> String
hash =
ffi ":crypto" "hash"
module Crypto exposing (..)
import Elchemy exposing (..)
type Hashalgorithm
= Sha
crypto_ : String -> a -> a
crypto_ =
ffi ":crypto" "hash"
test "Formats map type in Capitalize_case to PascalCase" do
assert Format.inspect({:type_name, 1, 2}) == "TypeName 1 2"
end