Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Kyriakidis hootlex

View GitHub Profile
View vue_composition_collisions_demo.js
import { ref } from 'vue';
const useCounterUp = (initialVaue = 0) => {
const counter = ref(initialVaue);
const increment = () => counter.value += 1;
return { counter, increment };
};
const useCounterDown = (initialVaue = 0) => {
const counter = ref(initialVaue);
@hootlex
hootlex / getPaperLinks.js
Created May 13, 2019
Get links for all Dropbox Paper files under a folder
View getPaperLinks.js
@hootlex
hootlex / export-slack-email-invites.md
Last active Nov 22, 2017
How to export all email invites from Slack
View export-slack-email-invites.md
View how-to-make-greek-frappe.md

How to make Frappe

  1. Add 1-3 teaspoons of coffee and the desired amount of sugar in a high glass. Then cover the mix with water.

  1. Use tha shaker to make foam until it looks nice.

@hootlex
hootlex / Component.vue
Created Dec 8, 2016 — forked from nickbasile/Component.vue
How to use a namespaced action in a Vue.js component
View Component.vue
<template>
<div>
<button @click="increment">Increment</button>
</div>
</template>
<script>
import { mapActions } from 'vuex'
export default{
methods: {
@hootlex
hootlex / Common-Currency.json
Created Aug 5, 2016 — forked from Fluidbyte/Common-Currency.json
Common Currency Codes in JSON
View Common-Currency.json
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@hootlex
hootlex / pagination object API example.md
Created Jun 15, 2016
pagination object API example
View pagination object API example.md
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $posts = Post::paginate(20);
@hootlex
hootlex / 0_reuse_code.js
Created Jun 14, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View animals1.json
{
"current_page": 1,
"last_page": 3,
"next_page_url": "/animals2.json",
"prev_page_url": null,
"data": [
{
"id": 1,
"name": "Crocodile"
},
@hootlex
hootlex / dummy1.json
Created May 27, 2016
vue-paginator dummy jsons
View dummy1.json
{
"nested" : {
"current_page": 1,
"last_page": 3,
"next_page_url": "/responses/dummy2.json",
"prev_page_url": null,
"data": [
{
"id": 1,
"plot": "Anakin, you’re breaking my heart! And you’re going down a path I cannot follow!",
You can’t perform that action at this time.