Discover gists
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
- https://education.github.com/pack GitHub学生包,需用教育邮箱验证。各种福利,可从DigitalOcean上手
- https://github.com/ripienaar/free-for-dev 本文尽量不与此项目重复
- https://free.zhelper.net/
- https://github.com/AchoArnold/discount-for-student-dev
import { useLayoutEffect } from 'react'; | |
const useAutoSizeTextArea = ( | |
id: string, | |
textAreaRef: HTMLTextAreaElement | null, | |
value: string | |
) => { | |
// this will calculate the height of textArea before DOM paints | |
useLayoutEffect(() => { | |
const textArea = textAreaRef ?? document.getElementById(id); |
<?php | |
const PACKAGE_NAME = 'com.your.bundle_id'; | |
const APPLE_TEAM_ID = 'ABCDEFGHIJK'; // 11 alphanumeric team ID | |
const ALLOW_DEV_ENVIRONMENT = true; | |
use CBOR\Decoder; | |
use CBOR\StringStream; |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
import android.content.Context | |
import android.util.AttributeSet | |
import android.util.Log | |
import android.view.MotionEvent | |
import android.view.View | |
import android.webkit.WebView | |
import androidx.customview.widget.ViewDragHelper | |
class NestedScrollingWebView @JvmOverloads constructor(context: Context, | |
attrs: AttributeSet? = null) : WebView(context, attrs) { |
Right now, the easiest way to activate JetBrains products is to use redirection of all requests from the application to localhost, but then nothing will work for you, neither pull/push git nor other plugins that use Internet access.
There is a better way, we will forward requests only to those that will go to the address account.jetbrains.com. This can be done without using the program, but it seems to me the easiest way to do it is through Proxifier. This program is available for both Windows and macOS.
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |