This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 https://_bimi.basic.space:443 | |
| 1 https://_domainkey.basic.space:443 | |
| 1 https://_sip._tcp.basic.space:443 | |
| 1 https://_tcp.basic.space:443 | |
| 1 https://clients.basic.space:443 | |
| 1 https://cloud.basic.space:443 | |
| 1 https://contact.basic.space:443 | |
| 1 https://dating.basic.space:443 | |
| 1 https://dl.basic.space:443 | |
| 1 https://garcia.larios.basic.space:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Query do | |
| def group_by_sets(query, %Form{show_total: true}), | |
| do: group_by(query, [o], fragment("GROUPING SETS ( (?), () )", o.id)) | |
| def group_by_sets(query, %Form{show_total: false}), | |
| do: group_by(query, [o], fragment("GROUPING SETS ( (?) )", o.id)) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # putty | |
| rg -l "putty-50" | xargs perl -pi -e 's/putty-50/off-white-500/g' | |
| rg -l "putty-100" | xargs perl -pi -e 's/putty-100/gray-50/g' | |
| rg -l "putty-200" | xargs perl -pi -e 's/putty-200/gray-100/g' | |
| rg -l "putty-300" | xargs perl -pi -e 's/putty-300/gray-200/g' | |
| rg -l "putty-400" | xargs perl -pi -e 's/putty-400/gray-300/g' | |
| rg -l "putty-500" | xargs perl -pi -e 's/putty-500/gray-400/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH RECURSIVE t AS ( | |
| SELECT min(author) AS author FROM posts | |
| UNION ALL | |
| SELECT (SELECT min(author) FROM posts WHERE author > t.author) | |
| FROM t WHERE t.author IS NOT NULL | |
| ) | |
| SELECT author FROM t WHERE author IS NOT NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def copy_into(destination, src, destination_offset \\ 0, start_index \\ 0) do | |
| destination = :binary.bin_to_list(destination) | |
| {prefix, destination} = :lists.split(destination_offset, destination) | |
| src = :binary.bin_to_list(src) | |
| {_, src} = :lists.split(start_index, src) | |
| {_replaced, destination} = :lists.split(length(src), destination) | |
| :binary.list_to_bin(prefix ++ src ++ destination) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| encodable = [ | |
| transaction.script, | |
| transaction.arguments, | |
| transaction.reference_block_id, | |
| transaction.gas_limit, | |
| transaction.proposal_key.address, | |
| transaction.proposal_key.key_id, | |
| transaction.proposal_key.sequence_number, | |
| transaction.payer, | |
| transaction.authorizers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyApp.Foo.Env do | |
| @moduledoc false | |
| def env() do | |
| # (just imports a bunch of public functions) | |
| import MyApp.Foo.Functions, warn: false | |
| __ENV__ | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyAppWeb.RouteForwarder do | |
| def init(opts), do: opts | |
| def call(%Plug.Conn{request_path: "/api/" <> _} = conn, opts) do | |
| MyAppWeb.APIRouter.call(conn, opts) | |
| end | |
| def call(conn, opts) do | |
| MyAppWeb.Router.call(conn, opts) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Foo do | |
| def bar() do | |
| """ | |
| x = 10 | |
| IO.inspect({x, y}) | |
| """ | |
| |> Code.string_to_quoted!() | |
| |> Macro.traverse( | |
| %{vars: [], unbound: []}, | |
| fn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find src/views -name '*.html' -type f -exec ruby -pi.bak -e 'gsub(/\bcol-(\w{2,4}-)?(\d+)\b/){"col-#{Regexp.last_match[1]}#{Integer(Regexp.last_match[2])*2}"}' {} \; |
NewerOlder