Last active
December 2, 2021 07:46
-
-
Save fendy3002/0f4d90156fdc9ac7fe38a80b7769c639 to your computer and use it in GitHub Desktop.
copyed examples
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
<!doctype html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
</body> | |
</html> |
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
switch({{ get("expr", "0", "<expression>") }}) { | |
case x: | |
// code block | |
break; | |
case y: | |
// code block | |
break; | |
default: | |
// code block | |
} |
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
SELECT * | |
FROM %s | |
WHERE %s | |
LIMIT %s OFFSET %s | |
ORDER BY %s; |
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
SELECT * | |
FROM {{ get("table", "0", "{table}") }} | |
WHERE {{ get("where", "1", "{where}") }} | |
ORDER BY {{ get("order", "2", "{order}") }} | |
LIMIT {{ get("limit", "3", "{limit}") }} OFFSET {{ get("offset", "4", "{offset}") }}; |
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
class {{ get("name", "0", "MyClass") }} { | |
constructor() { | |
} | |
}; |
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 {{ get("func", "0", "myFunction") }} = {{ "async " if get("async", "1", "") }}({{ get("args", "2") }}) => { | |
}; |
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
const express = require('express') | |
const app = express() | |
const port = 3000 | |
app.get('/', (req, res) => { | |
res.send('Hello World!') | |
}) | |
app.listen(port, () => { | |
console.log(`Example app listening at http://localhost:${port}`) | |
}) |
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
{% if get("type", "2") == "default" or get("type", "2") == "3" %}{# | |
#}import {{ get("asName", "1", get("name", "0")) }} from '{{ get("name", "0") }}';{# | |
#}{% elif get("type", "2") == "prop" or get("type", "2") == "2" %}{# | |
#}import {{"{"}} {{ get("asName", "1", get("name", "0")) }} {{"}"}} from '{{ get("name", "0") }}';{# | |
#}{% else %}{# | |
#}import * as {{ get("asName", "1", get("name", "0")) }} from '{{ get("name", "0") }}';{# | |
#}{% endif %} |
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
"{{ get("name", "0") }}": { type: Sequelize.{{ get("type", "1") }}, {{ "primaryKey: true" if get("pk", "2") | length }} }, |
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 * as React from 'react'; | |
class {{ get("name", "0", "MyComponent") }} extends React.Components { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return <></>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment