Skip to content

Instantly share code, notes, and snippets.

@EDDYMENS
EDDYMENS / Surreal.php
Last active March 17, 2024 16:43
Surreal DB PHP SDK
<?php
/**
* Surreal fluent query
*
* @author EDDYMENS
* @license MIT (or other licence)
*/
class Surreal
{
from flask import Flask
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
api = Api(app)
users = [
{
"name": "Nicholas",
"age": 42,
Vue.component('game-add', {
template: `
<div>
<input type="text" v-model="titleGame" />
<button @click="emitNewGame">Añadir</button>
</div>
`,
data: function () {
return {
titleGame: null
@mjhanninen
mjhanninen / fixes-to-sanjeevs-vuejs-tutorial.md
Created December 30, 2016 08:58
Fixes to A. Sanjeevs' Vue.js tutorial

Fixes to A. Sanjeevs' Vue.js tutorial

If you work through [Anirudh Sanjeevs'][sanjeev] excellent tutorial on setting up a [Vue.js][vuejs] project with [Webpack][webpack] and some other goodies, you'll probably hit a handful of minor problems. The tutorial was written a year ago and things have changed a lot since then which naturally explains the issues. So let's tackle them one by one.

The first problem is that Vue.js fails to mount the app component and raises the following error:

@cferdinandi
cferdinandi / pandoc-cheatsheet.md
Last active April 23, 2024 17:49
CLI cheats for creating a markdown ebook with Pandoc.

epub

pandoc assets/metadata.yml chapters/*.md -o book.epub -S

pdf

Using WKHTMLtoPDF (no page numbers)

@roachhd
roachhd / README.md
Last active September 26, 2019 21:55
Jekyll - Get a list of PAGES in a given Category -not posts- for

on _config.yml add your index of categories:

categories: [bacon, dogs, cows, mull, stink]

on your page.md inside the front matter add one or more of the categories available in the _config.yml

---
@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet