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
FROM golang:1.19 | |
RUN apt-get update && apt-get -y install sudo | |
# get args from docker-compose args: or docker build --build-arg | |
ARG UNAME | |
ARG GNAME | |
ARG UID=1000 | |
ARG GID=1000 |
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
const yaml = require('js-yaml'); | |
const fs = require('fs'); | |
const bump = (filename) => { | |
try { | |
const doc = yaml.load(fs.readFileSync(filename, 'utf8')); | |
const version = doc.info.version.split('.').map(a => parseInt(a)); | |
console.log('openApi from', version) | |
version[2]++ | |
console.log('openApi to ', version) |
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
// file:/usr/share/X11/xkb/symbols/mycustomlayout | |
default partial alphanumeric_keys | |
xkb_symbols "mycustomlayout" { | |
// Based on a very simple Brazilian modified ABNT2 keyboard, | |
// by Daniel Ribeiro ([email protected]). | |
// With added support for dead keys in I18N applications, | |
// by Conectiva (http://www.conectiva.com.br). | |
// the idea is to have almost the us-international with cedil |
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
var Vue = (function (exports) { | |
'use strict'; | |
// Make a map and return a function for checking if a key | |
// is in that map. | |
// | |
// IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/ | |
// So that rollup can tree-shake them if necessary. | |
function makeMap(str, expectsLowerCase) { | |
const map = Object.create(null); |
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
package org.acme.neo4j; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.inject.Inject; | |
import org.neo4j.driver.Driver; | |
import org.neo4j.driver.Session; |
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
'use strict' | |
const express = require('express'); | |
const request = require('request'); | |
const URL = require('url').URL; | |
const app = express(); | |
const allowedMethods = 'GET, PUT, POST, DELETE, HEAD, PATCH, OPTIONS' // os metodos permitidos | |
const allowedHeaders = 'Authorization,Content-Type,Accept,X-Amz-Date,X-Api-Key,X-Amz-Security-Token' // os headers permitidos | |
// const allowedHeaders = 'Accept, Accept-CH, Accept-Charset, Accept-Datetime, Accept-Encoding, Accept-Ext, Accept-Features, Accept-Language, Accept-Params, Accept-Ranges, Access-Control-Allow-Credentials, Access-Control-Allow-Headers, Access-Control-Allow-Methods, Access-Control-Allow-Origin, Access-Control-Expose-Headers, Access-Control-Max-Age, Access-Control-Request-Headers, Access-Control-Request-Method, Age, Allow, Alternates, Authentication-Info, Authorization, C-Ext, C-Man, C-Opt, C-PEP, C-PEP-Info, CONNECT, Cache-Control, Compliance, Connection, Content-Base, Content-Disposition, Content-Encoding, Content-ID, Content-Language, Content-Length, C |
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
// https://mvnrepository.com/artifact/fr.noop/charset | |
@Grapes( | |
@Grab(group='fr.noop', module='charset', version='1.0.1') | |
) | |
import static fr.noop.charset.CharsetProvider.*; | |
def f = new File('C:/Users/danielr/Desktop/legendas/AMERICANHORRORSTORY_6ATS01_ORIG_V473377_INT_C_TVD_SUBFULSTL_29_BPO_178_MOS-XX_RT004242.stl') |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset='utf-8'> | |
<title>HTML5 backward playback Video</title> | |
</head> | |
<body> | |
<div> | |
<video id='video' | |
width="360" |
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
// components/ClipList.vue | |
<template> | |
<div> | |
<h1>{{ clientid }}</h1> | |
Add: <input v-model="newClip.title" placeholder="Enter a title, then hit [enter]" @keyup.enter="tryCreateClip"> | |
<br />Search: <input v-model="q" placeholder="Enter a title for search, and hit [enter]" @keyup.enter="trySearchClip"> | |
<br />Result: {{searchResult}} | |
<div class="client"> | |
<ul> | |
<li v-for="clip in clips"> |
NewerOlder