Skip to content

Instantly share code, notes, and snippets.

View dragos199993's full-sized avatar
🍔

Dragos Nedelcu dragos199993

🍔
View GitHub Profile
type Image {
type: String!
url: String!
}
type TrimLevel {
id: String!
type: String!
}
<template>
<Page class="page">
<ActionBar title="My tasks" class="action-bar" />
<TabView height="100%" tabTextFontSize="15">
<TabViewItem title="Active" textTransform="uppercase">
<StackLayout orientation="vertical" width="100%" height="100%">
<GridLayout columns="2*,*" rows="*" width="100%" height="15%">
<TextField col="0" row="0" v-model="textFieldValue" hint="Type new task..." editable="true" @returnPress="onButtonTap" />
<Button col="1" row="0" text="Add item" @tap="onButtonTap" />
@dragos199993
dragos199993 / vs-code-settings
Last active September 18, 2018 04:24
vs-code-base-settings
{
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"workbench.startupEditor": "newUntitledFile",
"liveSassCompile.settings.formats":[
// This is Default.
{
"format": "compressed",
"extensionName": ".css",
"savePath": null
}
// function modal(){
// }
// var modal = {
// init: function(){
// console.log('y');
// }
// }
function appendHtml(el, str) {
var div = document.createElement('div');
div.innerHTML = str;
while (div.children.length > 0) {
el.appendChild(div.children[0]);
}
}
var test = "hi";
@dragos199993
dragos199993 / gist:569126bc79f17aa41ac9c79246c0cb6a
Created June 9, 2018 20:24
Wordpress boostrap 4 pagination with active class on current page
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
*
* @return string
* Accepts a WP_Query instance to build pagination (for custom wp_query()),
* or nothing to use the current global $wp_query (eg: taxonomy term page)
* - Tested on WP 4.9.5
* - Tested with Bootstrap 4.1
@dragos199993
dragos199993 / README.md
Created May 19, 2018 19:12
Vue + Firebase + Auth Demo

Vue + Firebase + Auth Demo

A simple App using Vue.js & Firebase with Auth.

See the DEMO.