This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* --------------------------------------------------------------- | |
* Always UTF-8 | |
* --------------------------------------------------------------- | |
* http://stackoverflow.com/a/4279294 | |
*/ | |
header('Content-Type: text/html; charset=utf-8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Validate a Human Name | |
* | |
* @param $name | |
* A name as a string. | |
* @return | |
* TRUE or FALSE if name is a valid human name. | |
*/ | |
function valid_human_name($name) { | |
# Matches names like "Ítalo", "Édith" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
<div v-bind:class="['ui', { 'disabled' : disabled }, iconClasses(), 'input', { 'focus' : focus }, { 'loading' : dLoading }, { 'error' : error }]"> | |
<input v-bind:type="'text'" v-bind:placeholder="placeholder" v-bind:disabled="disabled" | |
ref="input" v-bind:value="value" v-on:input="updateValue($event.target.value)"> | |
<i v-bind:class="[dIcon.value, 'icon']" v-if="dIcon.value"></i> | |
</div> | |
</template> | |
<script> | |
import Input from '../mixins/common/input.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
methods: { | |
// v-on:focus="emitFocus" | |
emitFocus: function() { | |
this.$emit('focus') | |
}, | |
// v-on:blur="emitBlur" | |
emitBlur: function() { | |
this.$emit('blur') | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Browser-sync append script | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Insert a script tag on a document | |
// @author Almino Melo <[email protected]> | |
// @match http://localhost:3000/* | |
// @match http://200.129.37.8:3000/* | |
// @require https://code.jquery.com/jquery-3.1.1.min.js | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
directives: { | |
/* | |
* http://stackoverflow.com/questions/43693665/vuejs-editable-close-when-click-outside-in-vuejs | |
* https://jsfiddle.net/Linusborg/Lx49LaL8/ | |
*/ | |
'click-outside': { | |
bind: function (el, binding, vNode) { | |
// Provided expression must evaluate to a function. | |
if (typeof binding.value !== 'function') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pactl set-card-profile 0 output:hdmi-surround+input:analog-stereo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pactl set-card-profile 0 output:analog-stereo+input:analog-stereo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources/assets/less/app.less | |
@semantic: '../semantic/src/'; | |
@definitions: '@{semantic}definitions/'; | |
& { | |
@import '@{definitions}globals/reset.less'; | |
} | |
& { |
OlderNewer