Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
// note for typescript users: you will need to install node.js types into your project with `npm i -D @types/node` | |
import { fileURLToPath } from 'url'; | |
import path, { dirname } from 'path'; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = dirname(__filename); | |
export default { | |
// all the usual config goes here... |
entidad | municipio | confirmados | defunciones | activos | ambulatorios | ambulatorios_fallecidos | hospitalizados | hospitalizados_fallecidos | intubados | intubados_fallecidos | |
---|---|---|---|---|---|---|---|---|---|---|---|
Aguascalientes | Aguascalientes | 32906 | 2613 | 722 | 27150 | 181 | 5756 | 2432 | 716 | 569 | |
Aguascalientes | Asientos | 606 | 48 | 4 | 478 | 6 | 128 | 42 | 20 | 10 | |
Aguascalientes | Calvillo | 1252 | 34 | 7 | 1107 | 2 | 145 | 32 | 18 | 13 | |
Aguascalientes | Cosío | 149 | 14 | 0 | 108 | 0 | 41 | 14 | 10 | 7 | |
Aguascalientes | El Llano | 129 | 22 | 2 | 85 | 0 | 44 | 22 | 14 | 12 | |
Aguascalientes | Jesús María | 1236 | 86 | 48 | 1011 | 12 | 225 | 74 | 38 | 24 | |
Aguascalientes | No Especificado | 2 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | |
Aguascalientes | Pabellón de Arteaga | 1081 | 76 | 6 | 905 | 5 | 176 | 71 | 37 | 29 | |
Aguascalientes | Rincón de Romos | 1003 | 74 | 4 | 771 | 3 | 232 | 71 | 39 | 28 |
const baseQuery = q.Paginate(q.Match(q.Index(indexName), terms)); | |
// or | |
// const baseQuery = q.Paginate(q.Collection(collectionName)) | |
const expandedQuery = q.Map(baseQuery, (ref) => | |
q.Let( | |
{ | |
instance: q.Get(q.Var('ref')) | |
}, | |
{ |
// Remove chrome autofill color from inputs | |
input:-webkit-autofill, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus, | |
input:-webkit-autofill:active { | |
transition: background-color 5000000s ease-in-out 0s; | |
} | |
# Credit: https://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete#answer-29350537 |
// Package main is a sample macOS-app-bundling program to demonstrate how to | |
// automate the process described in this tutorial: | |
// | |
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
// | |
// Bundling the .app is the first thing it does, and creating the DMG is the | |
// second. Making the DMG is optional, and is only done if you provide | |
// the template DMG file, which you have to create beforehand. | |
// | |
// Example use: |
nombre | name | nom | iso2 | iso3 | phone_code | continente | |
---|---|---|---|---|---|---|---|
Afganistán | Afghanistan | Afghanistan | AF | AFG | 93 | Asia | |
Albania | Albania | Albanie | AL | ALB | 355 | Europa | |
Alemania | Germany | Allemagne | DE | DEU | 49 | Europa | |
Algeria | Algeria | Algérie | DZ | DZA | 213 | África | |
Andorra | Andorra | Andorra | AD | AND | 376 | Europa | |
Angola | Angola | Angola | AO | AGO | 244 | África | |
Anguila | Anguilla | Anguilla | AI | AIA | 1 264 | América | |
Antártida | Antarctica | L'Antarctique | AQ | ATA | 672 | Antártida | |
Antigua y Barbuda | Antigua and Barbuda | Antigua et Barbuda | AG | ATG | 1 268 | América |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
var connectionString = 'postgres://localhost:5432/postgres'; | |
var Promise=require('bluebird'); | |
var knex = require('knex')({ | |
client: 'pg', | |
connection: { | |
user: 'postgres', | |
database: 'postgres', | |
port: 5432, |
.box { | |
padding: 5px; | |
background: red; | |
margin: 10px; | |
position:relative; | |
z-index: 3; | |
} | |
.drag-target { | |
background: blue; | |
z-index: 1; |
#!/bin/sh | |
# The bandwidth to simulate, here about 56kilobit per second. This is layer 2 bandwidth, so TCP/UDP and IP overhead will apply | |
BW="56kbps" | |
# _Half_ the latency that we aim for. Since this applies to both the WAN port and Wi-Fi, the delay is applied twice, so this actually puts it at around 120+ms | |
LATENCY="60ms" | |
# Chance of packet loss. Also applied to both interfaces, so it is 1%. | |
LOSS="0.5%" | |
# The device name of your wifi device. | |
WIFI="wlan0" |