atom-text-editor {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
This file contains 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
"tailwindCSS.experimental.classRegex": [ | |
// const foo = cn("...") | |
// const foo = cx("...") | |
// const foo = classnames("...") | |
["cn|cx|classnames\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// <Component classNames={{ foo: "..." }} /> | |
["classNames=\\{([^}]*)\\}", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// const foo = /* tw */ "..." | |
["/\\* tw \\*/ ?(.*)", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
// const foo = /* tw */ { bar: "...", baz: "..." } |
Schema extracted from https://a.slack-edge.com/bv1-6-8cacda2/block-kit-builder.93ca53691de7cf9d4417.min.js
Probably the url/bundle will change every deploy so you might want to go https://api.slack.com/tools/block-kit-builder, open devtools and search for that file (block-kit-builder) in source tab. Pass some unminify tool and search for "JSON Schema".
PS1: Some block/element types simply does not work, idk why.
PS2: If you want to explore easily, copy the code and paste to the devtools console.
This file contains 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
import './index.css'; | |
export default function App() { | |
return <h1>Hello from Gist</h1>; | |
}; |
This file contains 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
<?php | |
//primeiro você chama o sdk do facebook | |
require 'facebook-php-sdk-master/src/facebook.php'; | |
//aqui você instancia com as informações do seu app (tem que criar um app em developers.facebook.com) | |
$facebook = new Facebook(array( | |
'appId' => 'YOUR_APP_ID', | |
'secret' => 'YOUR_APP_SECRET' | |
)); | |
?> |
This file contains 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
export const formatDate = (dateOrString, opts) => { | |
const date = new Date(dateOrString); | |
return new Intl.DateTimeFormat('pt-BR', opts).format(date); | |
} |
This file contains 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
export const uncurry = (fn) => (...args) => { | |
let result = fn | |
for(i in args){ | |
result = typeof result === 'function' | |
? result(args[i]) | |
: result | |
} | |
return result | |
} |
This file contains 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
<?php | |
/** | |
* Sequência de Fibonacci em PHP | |
* @author Renato Ribeiro <renato@lugri.com> | |
* | |
*/ | |
//função que gera a sequência de fibonacci e retorna em array | |
function fibonacci($q, $zero = false){ | |
if($q >= 2){ |
tgit new fs/xyz [-b master]
git checkout master # ensure we are on master branch
git pull origin master --rebase # ensure master is up to date (fetch upstream && rebase)
git checkout -b fs/xyz # create the new src branch
git push -u origin @ # should we auto push new src branches to remote?
I. Should we auto push new src branches to remote? Maybe a opt-in flag?
This file contains 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
type ActionsBlock = { | |
!type: 'actions' | |
!elements: [ | |
| StaticSelectElement | |
| UsersSelectElement | |
# | ConversationsSelectElement | |
# | ChannelsSelectElement | |
# | ButtonElement | |
# | OverflowElement | |
# | DatepickerElement |
NewerOlder