Descargar las hojas de atajos recomendadas:
Discover gists
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
是 | [shì] to be, 是不是? shìbushì? is (it) or is (it) not?; 是否 shìfǒu whether or not, is (it) or is (it) not? | |
不 | [bù] not [bú] (used before tone #4); 不是 bú shì isn't | |
了 | [le] <verb particle marking a new situation or a completed action>; 你来了! Nǐ láile! You have come!; 我累了! Wǒ lèile! I've gotten tired!; 那好了! Nà hǎole! That's OK (now)!; 我只请了一位客人. Wǒ zhǐ qǐngle yí wèi kèren. I invited only one guest. [liǎo] end, finish, settle, dispose of, know clearly, to be able, (=了解 liǎojiě) understand, comprehend; 了了 liǎoliaǒ clearly understand, settle (a debt/etc.), to be intelligent; 了了 liǎole to be over/ended/finnish/settled; 你卖不了! Nǐ mài bùliǎo! You will not be able to sell (it)! [liào] (=瞭 liaò) to survey/watch{Compare with 子 zǐ child} | |
人 | [rén] person; 人类 rénlèi humankind; 有人吗? yǒu rén ma? Is there anybody here?{Compare with 入 rù enter} | |
我 | [wǒ] I, me, my; 我们 wǒmen we, us{Compare with 找 zhǎo seek} | |
在 | [zài] at; 现在 xiànzài now; 存在 cúnzài exist | |
有 | [yǒu] have, there is; 没有 méiyǒu haven't, there isn't; |
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
# Update on 2024/04/13 | |
# 1. Improved OS compatibility: try wget and then curl for downloading files. | |
# | |
# Update on 2024/01/26 | |
# 1. Thanks to GitHub user @aka-Ani, this script now will install latest version of frp: | |
# https://gist.github.com/lawrenceching/41244a182307940cc15b45e3c4997346?permalink_comment_id=4851742#gistcomment-4851742 | |
# 2. Use .toml conf file as .ini became lagacy | |
# | |
# Update on 2023/06/19 | |
# 1. frp no longer provide systemctl service file. This script creates frpc/fprs systemctl service file by itself |
% VXLAN lab based on OpenVSwitch and LXD containers
The very first idea when I started writing this lab was to illustrate the Virtual Extensible LAN (VXLAN) technology. Now that OpenVSwitch configuration is smoothely integrated in the Debian networking configuration files, this should have resulted in somewhat easy-to-read gist.
The OSRM docker quick start provides a great explanation on how to set up the container: https://hub.docker.com/r/osrm/osrm-backend/
Yet - for Docker on Windows minor changes were necessary for me (otherwise I'd get "File not found" or "Permission" errors).
This is how it worked for me:
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
class Character { | |
constructor(name, strength, agility, criticalStrikeChance, criticalStrikeBonus, dodge) { | |
this.name = name; | |
this.strength = strength; | |
this.agility = agility; | |
this.criticalStrikeChance = criticalStrikeChance; | |
this.criticalStrikeBonus = criticalStrikeBonus; | |
this.dodge = dodge; | |
this.health = 100; // Starting health | |
} |
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 Character = function(name, strength, agility, criticalStrikeChance, criticalStrikeBonus, dodge) { | |
this.name = name; | |
this.strength = strength; | |
this.agility = agility; | |
this.criticalStrikeChance = criticalStrikeChance; | |
this.criticalStrikeBonus = criticalStrikeBonus; | |
this.dodge = dodge; | |
this.health = 100; // Starting health | |
}; |
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 function getDiffTimeBetweenCurrentDate (dateString = '', now = new Date()) { | |
const dayInMilliseconds = 86400000 | |
if ([null, undefined, false, true].includes(dateString)) { | |
return dateString | |
} | |
const date = new Date(dateString) | |
const isInvalidDate = isNaN(date.getTime()) | |
if (isInvalidDate) { | |
return dateString |
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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
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 com.example.compose_debug | |
import androidx.compose.animation.EnterTransition | |
import androidx.compose.animation.ExitTransition | |
import androidx.compose.animation.core.CubicBezierEasing | |
import androidx.compose.animation.core.Easing | |
import androidx.compose.animation.core.FastOutLinearInEasing | |
import androidx.compose.animation.core.FastOutSlowInEasing | |
import androidx.compose.animation.core.LinearOutSlowInEasing | |
import androidx.compose.animation.core.PathEasing |
NewerOlder