We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':
- Our widget
Widget.svelte:
<script>
export let name;
</script>
<h1>Hello {name}!</h1>We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':
Widget.svelte:<script>
export let name;
</script>
<h1>Hello {name}!</h1>| // ==UserScript== | |
| // @name Websocket debugger | |
| // @namespace thomas-rosenau.de | |
| // @version 1 | |
| // @grant none | |
| // @include * | |
| // @run-at document-start | |
| // ==/UserScript== | |
| ((main) => { |
| #install homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| #install network ups tools | |
| brew update | |
| brew install nut | |
| #create directories and change permissions | |
| sudo mkdir -p /var/state/ups/upssched/ | |
| sudo chown -R `whoami`:nobody /var/state/ups | |
| sudo chmod 775 /var/state/ups/ |
| refreshFrequency: false | |
| style: """ | |
| top : 0px | |
| left : 0px | |
| height : 1300px | |
| z-index : -100 | |
| """ | |
| # Update the rendered output. |
| sub vcl_recv { | |
| ... | |
| if (req.http.Accept-Encoding) { | |
| if (req.url ~ "\.(jpeg|jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$") { | |
| unset req.http.Accept-Encoding; | |
| } elsif (req.http.Accept-Encoding ~ "gzip") { | |
| set req.http.Accept-Encoding = "gzip"; | |
| } elsif (req.http.Accept-Encoding ~ "deflate" && | |
| req.http.user-agent !~ "MSIE") { | |
| set req.http.Accept-Encoding = "deflate"; |
| <?php | |
| /** | |
| * Add new rewrite rule | |
| */ | |
| function create_new_url_querystring() { | |
| add_rewrite_rule( | |
| 'blog/([^/]*)$', | |
| 'index.php?name=$matches[1]', | |
| 'top' | |
| ); |
| import * as models from "models"; | |
| import Sequelize from "sequelize"; | |
| import fs from "fs"; | |
| delete models.default; | |
| const sequelize = new Sequelize( | |
| '', | |
| '', | |
| '', { |
| #!/bin/bash | |
| export AnException=100 | |
| export AnotherException=101 | |
| # start with a try | |
| try | |
| ( # open a subshell !!! | |
| echo "do something" | |
| [ someErrorCondition ] && throw $AnException |