Skip to content

Instantly share code, notes, and snippets.

@ohownew
ohownew / 知识星球视频增强.js
Last active May 13, 2024 02:29
知识星球原生视频组件,无法通过键盘操作前进、后退、暂停、播放,于是写了一个简单的脚本,要先安装好篡改猴Tampermonkey等插件管理器。然后新建脚本,并复制如下代码
// ==UserScript==
// @name 知识星球视频增强
// @namespace http://tampermonkey.net/
// @version 2024-04-21
// @description 知识星球视频,通过键盘控制: 前进 后退 暂停 开始 全屏
// @author ohownew
// @match https://wx.zsxq.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=zsxq.com
// @grant none
// ==/UserScript==
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active May 13, 2024 02:28
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@scholtes
scholtes / readme.md
Created January 28, 2022 01:29
Wordle dictionary

Wordle dictionary

Wordle is a web browser game that you can play at this link. You get 6 chances to guess a single 5 letter word and there is only 1 word per day.

This gist contains the contents of the dictionary Wordle uses as of January 27th, 2022. Wordle actually uses two dictionaries:

  • La words that can be guessed and which can be the word of the day
  • Ta words that can be guessed but are never selected as the word of the day
@marcelopoars
marcelopoars / shortcuts-for-vs-code.md
Last active May 13, 2024 02:23
Alguns atalhos para VS Code que vão ajudar aumentar a sua produtividade e facilitar o seu dia a dia como desenvolvedor.

Atalhos para VS Code

Alguns atalhos para VS Code que vão ajudar aumentar a sua produtividade e facilitar o seu dia a dia como desenvolvedor.

Atalhos básicos

  • Ctrl + = ou Ctrl + - aumentar ou diminuir o zoom
  • Ctrl + 0 resetar o zoom
  • Ctrl + Shift + P mostra todos os comandos disponíveis no VS Code (Ex.: reload, reset, clear)
  • Ctrl + , abre as configurações do VS Code
//
// SignatureAnimation.swift
// OpenSwiftUIAnimations
//
// Created by Amos Gyamfi on 11.5.2024.
//
import SwiftUI
struct SignatureAnimation: View {
@v1mkss
v1mkss / JetBrains Activation.md
Last active May 13, 2024 02:22
JetBrains Activation

JetBrains Activation

  • No proxy for:
*.apache.org, *.github.com, *.github.io, *.githubusercontent.com, *.gitlab.com, *.google.com, *.gradle.org, *.jetbrains.space, *.maven.org, cache-redirector.jetbrains.com, cloudconfig.jetbrains.com, download-cdn.jetbrains.com, download.jetbrains.com, downloads.marketplace.jetbrains.com, ea-report.jetbrains.com, github.com, gitlab.com, google.com, gradle.org, jcenter.bintray.com, plugins.jetbrains.com, resources.jetbrains.com, www.jetbrains.com

Activation Key:

UX394X3HLT-eyJsaWNlbnNlSWQiOiJVWDM5NFgzSExUIiwibGljZW5zZWVOYW1lIjoiSG9uZ2lrIFVuaXZlcnNpdHntmY3snbXrjIDtlZnqtZAiLCJsaWNlbnNlZVR5cGUiOiJDTEFTU1JPT00iLCJhc3NpZ25lZU5hbWUiOiLkvJfliJvkupEg5bel5L2c5a6kIiwiYXNzaWduZWVFbWFpbCI6ImhhbmF6YXdhbWl0b0BnbWFpbC5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEyLTEzIiwiZXh0ZW5kZ
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active May 13, 2024 02:22 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@nidorx
nidorx / main.go
Created May 13, 2024 02:18
`interface {struct}` and `interface {*struct}` manipulation in Golang using reflect.
/**
* `interface {struct}` and `interface {*struct}` manipulation in Golang using reflect.
*
* Use case: To instantiate a struct using reflect and use libraries like JSON.Decode at runtime.
*/
package main
import "reflect"
@shuuchen
shuuchen / unet.py
Created July 5, 2020 02:59
Implementation of U-Net with attention mechanism using Pytorch
import torch
from torch import nn
class Conv(nn.Module):
def __init__(self, in_ch, out_ch):
super(Conv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(in_ch, out_ch, 3, padding=1),
@jahirfiquitiva
jahirfiquitiva / settings.json
Created May 11, 2024 22:32
VS Code Settings
{
"breadcrumbs.enabled": false,
"editor.fontFamily": "'MonoLisa', 'Dank Mono', 'Operator Mono Lig', 'Operator Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontWeight": "400",
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "explicit",
"editor.stickyScroll.enabled": true,
"explorer.sortOrder": "type",
"workbench.editor.enablePreview": false,
"workbench.editor.highlightModifiedTabs": true,