Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
@didoo
didoo / git-log-parser.js
Created January 25, 2019 16:52
Git Log Parser & Aggregator
/* eslint-env node */
/* eslint-disable no-console, dot-notation */
const fse = require('fs-extra');
const readline = require('readline');
// const platform = 'mw_less';
// const platform = 'mw_scss';
const platform = 'cosmos';
@davo
davo / scrap.js
Created January 15, 2019 12:34
Scrapping from the DevTools
copy(
Array.from(document.querySelectorAll('p')).map(p => {
const t = p.innerText
return {
t
}
})
)
@zocker-160
zocker-160 / blender_cr_headless.md
Last active June 6, 2023 02:43
Setup a blender rendernode on a headless server with crowdrender addon

GUIDE: How To create a headless blender renderserver with CrowdRender addon

Requirements

  • any headless Linux server
  • Blender v2.79 or v2.80 - v2.93 (from package manager or blender.org)
  • latest version of CrowdRender addon
  • optional: GPU drivers for GPU-rendering

install and activate addon

@davo
davo / settings.json
Created January 11, 2019 18:10
VS Code customization for Framer X projects
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#05f",
"titleBar.inactiveBackground": "#09f",
"titleBar.inactiveForeground": "#262626",
"titleBar.activeForeground": "#ffffff"
}
}
@croaky
croaky / App.tsx
Last active July 25, 2021 19:55
Parcel + TypeScript + React
import * as React from 'react'
// routing, etc.
import { Reset } from '~/ui/shared/Reset'
export class App extends React.Component {
public render() {
return (
<div>
<title>Dashboard</title>
@smashercosmo
smashercosmo / Table.tsx
Last active September 22, 2023 15:57
Table.tsx
import React from 'react'
import cx from 'classnames'
import { useTableScrollObserver } from './useTableScrollObserver'
import styles from './Table.css'
type TableProps = {
children: React.ReactNode
}
@emilwidlund
emilwidlund / App.tsx
Last active February 28, 2019 00:02
import * as React from "react";
interface Payload {
text: string;
timestamp: number;
}
interface ChatProps {
}
@gaearon
gaearon / MyResponsiveComponent.js
Created November 1, 2018 10:05
Examples from "Making Sense of React Hooks"
function MyResponsiveComponent() {
const width = useWindowWidth(); // Our custom Hook
return (
<p>Window width is {width}</p>
);
}
@assassinave
assassinave / local-img-video.tsx
Last active September 27, 2020 01:22
Framer X - Display local image or video sources in Code Component
// If you want to place local images or videos to your Framer
// Example (not full code)
// Add this at top of .tsx file you're needing to add local images/videos
import { url } from "framer/resource";
// When adding them into your
import { Data, animate, Override, Animatable } from "framer";
const data = Data({ scale: Animatable(1) });
const pulse = async () => {
await animate(data.scale, 2).finished;
await animate(data.scale, 1).finished;
pulse();
};