Skip to content

Instantly share code, notes, and snippets.

View talentlessguy's full-sized avatar
🏖️
Existing

v1rtl talentlessguy

🏖️
Existing
View GitHub Profile
@talentlessguy
talentlessguy / patch.dsl
Created November 14, 2023 18:16
Patch for ASUS ROG G16 2023
DefinitionBlock ("", "SSDT", 1, "CUSTOM", "CSC3551", 0x00000001)
{
External (_SB_.PC00.SPI0, DeviceObj)
External (_SB_.PC00.SPI0.SPK1, DeviceObj)
Scope (_SB.PC00.SPI0)
{
Name (_DSD, Package ()
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),

Keybase proof

I hereby claim:

  • I am talentlessguy on github.
  • I am v1rtl (https://keybase.io/v1rtl) on keybase.
  • I have a public key ASCF80TAiuLcWpzKYrt5DESQZsbSBSMBzd28bd9HGHD2hAo

To claim this, I am signing this object:

@talentlessguy
talentlessguy / gist:b243a9250cd4a2073df27ff2d7664cd3
Last active June 9, 2022 16:41
did:3:kjzl6cwe1jw14b7ju7sn3393fgw8m02wqlhxh8hfvoee5qch7y3hjsl7m9ddjyh
did:3:kjzl6cwe1jw14b7ju7sn3393fgw8m02wqlhxh8hfvoee5qch7y3hjsl7m9ddjyh
@talentlessguy
talentlessguy / Outline.jsx
Last active May 15, 2020 15:26
Trying to reach that instance of effect inside React code
import { OutlineEffect } from 'postprocessing'
import { forwardRef, useMemo, useImperativeHandle } from 'react'
import { useThree } from 'react-three-fiber'
const Outline = forwardRef((props: OutlineEffect, ref) => {
const { scene, camera } = useThree()
const effect = useMemo(() => new OutlineEffect(scene, camera, props), [props])
useImperativeHandle(ref, () => effect, [effect])
return null
@talentlessguy
talentlessguy / Figure.tsx
Created April 2, 2020 12:35
Epic 3D rotating text
import React, { Suspense, useContext, useEffect, useState } from 'react'
import dynamic from 'next/dynamic'
import { useFrame, Canvas, Dom } from 'react-three-fiber'
import { useRef } from 'react'
import * as THREE from 'three'
import Text from './Text'
import { ColorContext } from '../lib/context'
const Controls = dynamic(() => import('./Controls'), {
ssr: false
@talentlessguy
talentlessguy / createGeometry.ts
Created April 2, 2020 11:28
morph geometry cube
import * as THREE from 'three'
export function createGeometry() {
const geometry = new THREE.BoxBufferGeometry(0.8, 0.8, 0.8, 4, 4, 4)
// create an empty array to hold targets for the attribute we want to morph
// morphing positions and normals is supported
geometry.morphAttributes.position = []
// the original positions of the cube's vertices
@talentlessguy
talentlessguy / NavBar.jsx
Created February 10, 2020 15:25
NavBar.tsx
import React, { useState } from 'react'
import { Image, Box, Link as RebassLink, Flex, Button, SxStyleProp } from 'rebass'
import Link from 'next/link'
import HashLink from './HashLink'
interface LinkInterface {
href: string
text: string
}
@talentlessguy
talentlessguy / babel.config.js
Created November 9, 2019 17:16
Styled JSX + PostCSS
module.exports = {
presets: [
[
'next/babel',
{
'styled-jsx': {
plugins: [
[
'styled-jsx-plugin-postcss',
{
@talentlessguy
talentlessguy / apollo.js
Created September 28, 2019 12:05
Apollo init
import withApollo from 'next-with-apollo'
import ApolloClient, { InMemoryCache, HttpLink } from 'apollo-boost'
import { parseCookies } from 'nookies'
export default withApollo(
({ initialState }) =>
new ApolloClient({
link: new HttpLink({
uri: 'https://api.komfy.now.sh/graphql',
headers: {
package main
import (
"os"
"time"
"log"
// excel "github.com/360EntSecGroup-Skylar/excelize"
env "github.com/joho/godotenv"
tb "gopkg.in/tucnak/telebot.v2"
)