Discover gists · GitHub

  • 2022-01-04Collection date
  • 2022-02-15Updated
Discover gists · GitHub
  • Website address:gist.githubusercontent.com
  • Server IP:185.199.108.133
  • Site description:GitHub Gist: instantly share code, notes, and snippets.

domain name:gist.githubusercontent.comValuation

about 500~20000

domain name:gist.githubusercontent.comflow

399

domain name:gist.githubusercontent.comGood or bad

Everything goes well. Rich and Noble Ji

website:Discover gists · GitHubWeights

5

website:Discover gists · GitHubIP

185.199.108.133

website:Discover gists · GitHubcontent

Discovergists·GitHubSkiptocontentAllgistsBacktoGitHubSigninSignupSign inSign upYousignedinwithanothertaborwindow.Reloadtorefreshyoursession.Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.Youswitchedaccountsonanothertaborwindow.Reloadtorefreshyoursession.Dismissalert{{messe}}Instantlysharecode,notes,andsnippets.DiscovergistsAllgistsForkedStarred1file9forks12comments53starsyasirkula/ScrollViewFocusFunctions.csCreatedOctober23,202110:09Focus/centerScrollViewtothespecifiedpoint/iteminUnityThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters.LearnmoreaboutbidirectionalUnicodecharactersShowhiddencharactersusingSystem.Collections;usingUnityEngine;usingUnityEngine.UI;publicstaticclassScrollViewFocusFunctions{ publicstaticVector2CalculateFocusedScrollPosition(thisScrollRectscrollView,Vector2focusPoint) { Vector2contentSize=scrollView.content.rect.size; Vector2viewportSize=((RectTransform)scrollView.content.parent).rect.size;2files56forks8comments104starsKlerith/pasos-node-typescript.mdLastactiveMay5,202403:45ConfigurarproyectodeNodeconTypeScriptPasosparausarNodeconTypeScriptconNodemonMásinformación-DocsOficialesInstalarTypeScriptytiposdeNode,comodependenciadedesarrollonpmi-Dtypescript@types/nodeInicializarelarchivodeconfiguracióndeTypeScript(Sepuedeconfiguraralgusto)1file2forks7comments56starsykst/gist:6e80e3566bd6b9d63d19LastactiveMay5,202403:40WebAudio+WebSocketでブラウザへの音声リDiscover gists · GitHubアルタイムストリーミングを実装するWebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装するWebRTCでやれよ!と言われそうなところですが、WebSocket+WebAudioの組み合わせで音声ストリーミングをシンプルに構成する方法を紹介してみます。サーバーサイド(Node.js+ws+pcm)サーバーサイドは何でも良いのですが、とりあえずNode.jsでtest.mp3というサンプルファイルをpcmモジュールでデコードし、wsでクライアントに垂れ流す作りにしておきます。1file4forks14comments15starsMjHead/options-values-in-code.phpLastactiveMay5,202403:33GetoptionvaluesforJetEngineoptionspesinsidethePHPcodeThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters.LearnmoreaboutbidirectionalUnicodecharactersShowhiddencharacters<?php/***Method1*Canbeusedfor:Anystoretype**pe-slug-replacethiswithyourOptionPeslug*option-name-replacethiswithyouroptionName/ID*/$value=jet_engine()->listings->data->get_option(39;pe-slug::option-name39;);1file55forks1225comments727starsaamiaa/CompleteDiscordQuest.mdLastactiveMay5,202403:30CompleteRecentDiscordQuestCompleteRecentDiscordQuestNoteThisnolongerworksinbrowser!NoteThisnolongerworksifyou'realoneinvc!Somebodyelsehastojoinyou!Howtousethisscript:AcceptthequestunderUserSettings->GiftInventory1file0forks0comments1starample-samples/dot-product.luaLastactiveMay5,202403:29GetthedotproductofanyMxNmatricesThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters.LearnmoreaboutbidirectionalUnicodecharactersShowhiddencharacters--Utilityfunctionsformatrix.dotlocalfunctiondotScalar1dVector(scalar,v1) localoutputVector={} fori=1,#v1,1do outputVector[i]=v1[i]*scalar end returnmatrix(outputVector)endlocDiscover gists · GitHubalfunctiondotScalar2dVector(scalar,v1)1file2forks0comments11starsawa2/nodejsでのOAuth2によるGoogleAPIの叩き方.mdLastactiveMay5,202403:18UsingGoogleAPIswithOAuth2101npmのgoogleapisパッケージを利用します。github.com/googleapis/google-api-nodejs-clientconst{google}=require('googleapis'); authの利用googleapisパッケージのauthは、いくつかの認証方法を提供してくれます。1file30forks29comments102starsguilherme/gist:LastactiveMay5,202403:17Gitpre-commithookthatdetectsifthedeveloperforgettoremoveallthejascriptconsole.logbeforecommit.ThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodeDiscover gists · GitHubcharacters.LearnmoreaboutbidirectionalUnicodecharactersShowhiddencharacters#!/bin/sh#Redirectoutputtostderr.exec1>&2#enableuserinputexec</dev/ttyconsoleregexp=39;console.log39;#CHECKiftest$(gitdiff--cached|grep$consoleregexp|wc-l)!=0then1file4forks66comments79starsgornostal/README.mdLastactiveMay5,202403:16UlauncherColorThemesThiswillbeatemporarysiteforsharingUlaunchercolorthemesWhenpostingathememakesureithastitle(themenameorwhatever)linktoagistorgithubrepowiththemefilesscreenshotattached(justdranimeontoacommentarea)1file2182forks139commentsstarsjboner/latency.txtLastactiveMay5,202403:12LatencyNumbersEveryProgrammerShouldKnowThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters.LearnmoreaboutbidirectionalUnicodecharactersShowhiddencharactersLatencyComparisonNumbers(~2012)----------------------------------L1cachereference0.5nsBranchmispredict5nsL2cachereference7ns14xL1cacheMutexlock/unlock25nsMainmemoryreference100ns20xL2cache,200xL1cacheCompress1KbyteswithZippy3,000ns3usSend1Kbytesover1Gbpsnetwork10,000ns10usRead4KrandomlyfromSSD*150,000ns150us~1GB/secSSDNewerOlderFooter©2024GitHub, Inc.FooternigationTermsPrivacySecurityStatusDocsContactManecookiesDonotsharemypersonalinformationYoucan’tperformthatactionatthistime.

Site:Discover gists · GitHubReport

If there is a violation of the site, please click ReportReport