Skip to content

Instantly share code, notes, and snippets.

View jonathan-martz's full-sized avatar

Jonathan Martz jonathan-martz

View GitHub Profile
<script>
let counter = 0;
let click = function () {
counter++;
};
</script>
<h2>Counter</h2>
<p>{counter}</p>
<template>
<h2>Zähler: {{ counter }}</h2>
<button @click="click()">+1</button>
</template>
<script setup>
import { ref } from "vue";
let counter = ref(1);
let click = function () {
@jonathan-martz
jonathan-martz / setup.md
Last active March 23, 2020 16:29
Setup Ubuntu Pc
@jonathan-martz
jonathan-martz / debug.php
Created March 13, 2020 13:59
Small script to get the backtrace of a php script, there are many information you could use.
$debug = debug_backtrace();
foreach($debug as $key => $trace){
echo $trace['file'].'<br>';
echo $trace['line'].'<br>';
}
@jonathan-martz
jonathan-martz / zsh-alias.sh
Last active February 2, 2020 19:03
A small snippet to google via commandline for zsh but should work for every unix dist. I hope not tested!
alias g='f() {firefox --new-tab "https://www.google.com/search?q=$1"};f'