Skip to content

Instantly share code, notes, and snippets.

View hootlex's full-sized avatar

Alex Kyriakidis hootlex

View GitHub Profile
@hootlex
hootlex / laravellocal.md
Last active April 19, 2024 10:52
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@hootlex
hootlex / Component.vue
Created December 8, 2016 00:47 — forked from nickbasile/Component.vue
How to use a namespaced action in a Vue.js component
<template>
<div>
<button @click="increment">Increment</button>
</div>
</template>
<script>
import { mapActions } from 'vuex'
export default{
methods: {
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 08:40
Get links for all Dropbox Paper files under a folder
@hootlex
hootlex / export-slack-email-invites.md
Last active November 22, 2017 14:44
How to export all email invites from Slack

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 / Common-Currency.json
Created August 5, 2016 02:41 — forked from ksafranski/Common-Currency.json
Common Currency Codes in 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 June 15, 2016 16:41
pagination object API example
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $posts = Post::paginate(20);
@hootlex
hootlex / 0_reuse_code.js
Created June 14, 2016 21:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hootlex
hootlex / animals1.json
Last active May 31, 2016 16:22
animals
{
"current_page": 1,
"last_page": 3,
"next_page_url": "/animals2.json",
"prev_page_url": null,
"data": [
{
"id": 1,
"name": "Crocodile"
},