| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta name="viewport" content="width=device-width"/> | |
| </head> | |
| <body style="height: 300vh"> | |
| <svg style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);" | |
| width="655" height="209" viewBox="0 0 655 209" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <path d="M653 207V62C653 28.8629 626.228 2 593.091 2C519.318 2 391.639 2 292.675 2C270.583 2 252.717 19.9124 252.717 42.0038C252.717 63.5378 252.717 81.7221 252.717 81.7221C252.717 81.7221 252.717 81.7221 252.717 81.7221V167C252.717 189.091 234.808 207 212.717 207H2" | |
| stroke="#EAECF0" stroke-width="4" stroke-linecap="round"/> |
| local batch = {} | |
| local holes_err = "bad argument #%s to function '%s' (this list doesn't support holes)" | |
| local refill = function (t, ...) | |
| local newn = select('#', ...) | |
| local length = math.max(newn, (t.n or #t)) | |
| for i = 1, length do | |
| t[i] = select(i, ...) |
| --================================================================================== | |
| -- Copyright (C) 2017 by Robert Machmer = | |
| -- = | |
| -- Permission is hereby granted, free of charge, to any person obtaining a copy = | |
| -- of this software and associated documentation files (the "Software"), to deal = | |
| -- in the Software without restriction, including without limitation the rights = | |
| -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell = | |
| -- copies of the Software, and to permit persons to whom the Software is = | |
| -- furnished to do so, subject to the following conditions: = | |
| -- = |
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W).
If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
| #define STB_IMAGE_IMPLEMENTATION | |
| #define STB_IMAGE_WRITE_IMPLEMENTATION | |
| #define STBI_ONLY_PNG | |
| #define STBI_ONLY_JPEG | |
| #define STBI_ONLY_BMP | |
| #define STBI_ONLY_GIF | |
| #include "stb_image.h" | |
| #include "stb_image_write.h" |
| function Demo() | |
| charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| local value = "" | |
| math.randomseed(os.time()) | |
| for i = 1, math.random(1, 100) do | |
| rand = math.random(#charset) | |
| value = value.. string.sub(charset, rand, rand) | |
| end | |
| return value | |
| end |