I hereby claim:
- I am srbdev on github.
- I am srbdev (https://keybase.io/srbdev) on keybase.
- I have a public key whose fingerprint is 26FA 6476 C131 D4A2 E6FD A21B B6F3 62BC 368D 3117
To claim this, I am signing this object:
defmodule ApiRouter do | |
use Plug.Router | |
plug Plug.Logger | |
plug :match | |
plug :dispatch | |
get "/" do | |
send_resp(conn, 200, "Hello, API!") | |
end |
defmodule Api do | |
# See https://hexdocs.pm/elixir/Application.html | |
# for more information on OTP Applications | |
@moduledoc false | |
use Application | |
require Logger | |
def start(_type, _args) do | |
# List all child processes to be supervised |
def deps do | |
[ | |
{:plug_cowboy, "~> 2.0"} | |
] | |
end |
import requests | |
from bs4 import BeautifulSoup | |
page = requests.get('https://some-url/') | |
soup = BeautifulSoup(page.text, 'html.parser') | |
links = soup.find_all('a', class_='links') | |
for link in links: | |
id = link.get('id') |
" GitGutter styling to use · instead of +/- | |
let g:gitgutter_sign_added = '∙' | |
let g:gitgutter_sign_modified = '∙' | |
let g:gitgutter_sign_removed = '∙' | |
let g:gitgutter_sign_modified_removed = '∙' |
" Lightline | |
set noshowmode | |
let g:lightline = { | |
\ 'colorscheme': 'nord', | |
\ 'active': { | |
\ 'left': [['mode', 'paste'], ['filename', 'modified']], | |
\ 'right': [['lineinfo'], ['percent'], ['readonly']] | |
\ }, | |
\ 'component_expand': { | |
\ }, |
I hereby claim:
To claim this, I am signing this object:
$ mysql.server restart --skip-grant-tables
$ mysql
mysql> UPDATE mysql.user SET authentication_string = PASSWORD('password'), password_expired = 'N' WHERE User = 'root' AND Host = 'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit
$ mysql -u root -p
var filterOnInput = function(element, listId, filteredClass) { | |
var value = $(element).val(); | |
// extending $'s contains to support filtering case insensitive | |
jQuery.expr[':'].containsi = jQuery.expr.createPseudo(function (arg) { | |
return function(e) { | |
return jQuery(e).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; | |
}; | |
}); |
const freeze = obj => JSON.parse(JSON.stringify(obj)) |