Skip to content

Instantly share code, notes, and snippets.

View quannt's full-sized avatar
👁️‍🗨️
I may be slow to respond.

Quan quannt

👁️‍🗨️
I may be slow to respond.
View GitHub Profile
@quannt
quannt / manifest.plist
Created October 4, 2016 09:52 — forked from hramos/manifest.plist
Sample manifest file for Over The Air iOS deployment
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@quannt
quannt / Editor.js
Created May 11, 2017 02:32
Adding a custom dropdown toolbar to react-quill
import React from "react";
import 'react-quill/dist/quill.snow.css';
import ReactQuill from 'react-quill';
import PropTypes from 'prop-types';
class Editor extends React.Component {
constructor(props) {
super(props)
}
componentDidMount() {
@quannt
quannt / [1] main.js
Created November 10, 2017 08:41 — forked from hfalucas/[1] main.js
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
/*
* This is a copy of the source code from https://github.com/mattdiamond/Recorderjs
* This gist contains the built version of the script for my debugging purposes.
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Recorder = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"
@quannt
quannt / left-bar.vue
Created March 7, 2018 09:49 — forked from languanghao/left-bar.vue
element ui menu with vue-router
<template>
<el-menu :router="true" :default-active="activeLink">
<template v-for="rule in $router.options.routes">
<el-submenu v-if="rule.children && rule.children.length > 0"
:index="rule.path"
>
<template slot="title"><i :class="rule.icon"></i>{{ rule.title }}</template>
<el-menu-item v-for="child in rule.children" :index="rule.path + '/' + child.path">{{ child.title }}</el-menu-item>
</el-submenu>
<el-menu-item v-else
sessionId:5b572ac193424d40ae0ce83123422804
senderProfileId:312
recipientProfileId:308
content:iVBORw0KGgoAAAANSUhEUgAAAgwAAAExCAYAAAAQivrhAAAYMGlDQ1BJQ0MgUHJvZmlsZQAAWIWV↵WQdUFEuz7tnZTN4l55xBcs455wwisKQlCUtSQBFElKAIKiAoKiJRRUUBFUEQA4oSFFREBJGgooBe↵UAnyBlDv/e97573z+pyZ+U51dfVXU901XbsA8Kj4R0dHoJgBiIyKozmZGwl6eHoJ4t4CCLAAdqAM↵0P6U2GhDBwcbgLTfz/9si4OINtKeyq3b+u/9/2tjCQyKpQAAOSA4IDCWEongqwCg1SjRtDgAMDOI↵XCQxLhrBWIQlYKUhBBEsuo5DNrHGOg7YxDYbOi5Oxgj2AwBP7+9PCwGAcZ2XYAIlBLHDmIv0kaIC↵qVGI6mkE61FC/QMB4B5FdGQjI7cjmIcewZIB/7AT8h82A/7Y9PcP+YM3fdloeBNqbHSE/87/5+v4↵v1tkRPzvOUSQiz6UZuG07vP6ewvfbr2OEe7Qg6gAO3sEkxD8jBq4ob+OJ0PjLVx/6X+nxBoj7wyJ↵M0DRB/qbWCOYF8HC8eGuhr+wnj9tYyyij/JKCnVx37SPiqJtd/plH5UUFWFn88tObmiQ5W9cHhRr↵6vxbJ5hqZolgJIaoZmqcpcsvmw8SqG52CGZE8HBsuLP1r7EfkkKN7f7MFe+0zhmJOQwiY3/7AosG↵08ycNvVhtVCqpd0vuU1cqIvF5ljYl+K/wYETwWFBsR42v/kEBpmYbvKB04OiXH/xhAui44ycfulX↵REc4/NKHW4IizNflwgh+Epvg/HvsXByy2DZ9QYMwfyuHzXnRrNFxDi6b3NCCwAYYAxMgCOKRKwBs↵B2GA+mSmaQb87jED/oAGQkAQkPsl+T3CfaMnCrk7gyTwCUFBIPbPOKON3iCQgMhX/0g373IgeKM3↵YWNEOJ
<template>
<input v-model="foo.bar"> // this will work
<input v-model="foo.bar.baz"> // Exception: cannot read property 'baz' of undefined
</template>
<script>
export default {
....
data() {
return {
<template>
<input v-model="foo.bar"> // this will work
<input v-model="foo.bar.baz"> // this will work
</template>
<script>
export default {
....
data() {
return {
Request URL: xxx
Request Method: POST
Status Code: 200 OK
Remote Address: xxx
Referrer Policy: no-referrer-when-downgrade
access-control-allow-origin: *
Connection: keep-alive
Content-Length: 131
Content-Type: application/x-thrift; protocol=TCOMPACT
Date: Mon, 30 Jul 2018 11:16:47 GMT
@quannt
quannt / keybase.md
Created May 16, 2019 15:42
keybase.md

Keybase proof

I hereby claim:

  • I am quannt on github.
  • I am quannt (https://keybase.io/quannt) on keybase.
  • I have a public key ASCISBU3QYHKlZ-sU-F7xD4qXsw1yPbfF8Tn0TvEI8ozwQo

To claim this, I am signing this object: