We rely on the work of hundreds of open source projects to build and run GitHub, npm, GitHub Desktop, GitHub Mobile, GitHub CLI, and all the software that we maintain. Therefore, today we are distributing $500,000 across the over 900 maintainers of our identified open source dependencies who are also signed up with GitHub Sponsors.
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
import { useSyncExternalStore } from "react"; | |
let count = 0; | |
export default function Home() { | |
const c = useSyncExternalStore( | |
(cb) => { | |
const tmr = setInterval(() => { | |
count++; | |
cb(); |
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 main | |
import ( | |
"math/rand" | |
"strings" | |
"github.com/atotto/clipboard" | |
) | |
func main() { |
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 main | |
import ( | |
"os" | |
"github.com/go-rod/rod" | |
"github.com/go-rod/rod/lib/input" | |
"github.com/go-rod/rod/lib/utils" | |
) |
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 main | |
import ( | |
"context" | |
"github.com/go-rod/rod" | |
"github.com/go-rod/rod/lib/cdp" | |
"github.com/go-rod/rod/lib/launcher" | |
) |
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 main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"strings" | |
"github.com/chromedp/chromedp" | |
) |
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
const puppeteer = require('puppeteer') | |
;(async () => { | |
const browser = await puppeteer.launch() | |
const page = await browser.newPage() | |
// Total timeout for all operations is not supported, only supports timeout for individual operations. | |
// Puppeteer doesn't support aborting of slow operation. | |
page.setDefaultTimeout(5 * 1000) |
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 main | |
import ( | |
"fmt" | |
"time" | |
"github.com/ysmood/kit" | |
"github.com/ysmood/storer" | |
"github.com/ysmood/storer/pkg/kvstore" | |
) |
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
// dns server | |
package dnser | |
import ( | |
"net" | |
"golang.org/x/net/dns/dnsmessage" | |
) |
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
let inc = n => ++n | |
let dec = n => --n | |
function add (x, y) { | |
if (y < 0) return add(dec(x), inc(y)) | |
if (y === 0) return x | |
if (y > 0) return add(inc(x), dec(y)) | |
} |
NewerOlder