This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml.
It runs daily to sync the default branch and can be triggered manually for any branch.
| "use client"; | |
| import * as React from "react"; | |
| import { Input } from "@/components/ui/Input"; | |
| import { Button } from "@/components/ui/Button"; | |
| import { | |
| AlertDialog, | |
| AlertDialogContent, | |
| AlertDialogHeader, | |
| AlertDialogTitle, | |
| AlertDialogDescription, |
| const crypto = require('crypto'); | |
| const debug = require('debug')('wxcrypto'); | |
| /** | |
| * 微信公众号消息加密解密,支持 node > 8.0 | |
| * | |
| * var WXCrypto = require('this module'); | |
| * var wx = new WXCrypto(token, aesKey, appid); | |
| * | |
| * var [err, encryptedXML] = wx.encrypt(xml, timestamp, nonce); |
| #!/bin/sh | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
| if [[ "$STAGED_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| PASS=true |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| [General] | |
| skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
| loglevel = notify | |
| [Proxy] | |
| Proxy = custom | |
| [Rule] |
| var Dispatcher = require('the-dispatcher'), | |
| Immutable = require('immutable'), | |
| NotificationConstants = require('../constants/notification_constants'), | |
| UserConstants = require('../constants/user_constants'), | |
| UploadConstants = require('../constants/upload_constants'), | |
| StylesheetConstants = require('../constants/stylesheet_constants'), | |
| makeStore = require('makestore'); | |
| /** | |
| * The Notification Store does nothing but store recent actions |