Skip to content

Instantly share code, notes, and snippets.

View whimsyniche's full-sized avatar

Victor whimsyniche

View GitHub Profile
@MidSpike
MidSpike / readme.md
Last active February 5, 2024 18:09
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
@VasVV
VasVV / Weather App.html
Last active November 8, 2023 16:18
Weather App - JavaScript
<div class='container'>
<div class='row'>
<div class='col-md-6 mx-auto text-center bg-primary mt-5 p-5 rounded'>
<h1 id='w-location'></h1>
<div id='error'><div class="alert alert-danger" role="alert">
This is a danger alert—check it out!
</div></div>
<h3 class='text-dark' id='w-desc'><h3>
<h3 id='w-string'></h3>
<img id='w-icon'>
import React, { useState, useEffect } from "react";
import "./packages/combobox/styles.css";
import {
Combobox,
ComboboxInput,
ComboboxList,
ComboboxOption,
ComboboxPopup
} from "./packages/combobox/index";
@gaearon
gaearon / modern_js.md
Last active April 18, 2024 15:01
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 6, 2024 13:00
crack activate Office on mac with license file
@Swizec
Swizec / History|-1096ae74|entries.json
Last active May 11, 2022 13:45
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/Swizec/Documents/websites/swizec.com/src/pages/blog/week-17-what-happens-when-you-only-eat-meat-for-a-year/index.mdx","entries":[{"id":"Q6eg.mdx","timestamp":1652114366832}]}
@getify
getify / 1.js
Last active December 6, 2017 14:07
comparing single recursion vs binary recursion
function reverseStr(str) {
if (str.length <= 1) return str;
var firstChar = str[0];
var restStr = str.substr(1);
return (restStr.length > 1 ? reverseStr(restStr) : restStr) +
firstChar;
}
@robinpokorny
robinpokorny / sleep.js
Created May 3, 2017 16:16
Sleep that passes data
const sleep = (dur) => (data) =>
new Promise((res) =>
setTimeout(() => res(data), dur)
)
const yay = () => Promise.resolve('sleepy')
.then(sleep(1000))
.then((status) => console.log(`I am so ${status}!`))
yay()
@danielpataki
danielpataki / footer.php
Created January 10, 2017 20:07
Simple theme for customizer project
@gomar
gomar / 00-intro.md
Last active January 30, 2024 04:58
Setting up a Keynote document for grid layout design

Setting up a Keynote document for grid layout design

I like (love ?) Keynote because it

  • is a simple to use presentation software,
  • is vector based (when zooming it just looks gorgeous)
  • exports to powerpoint

If I could remove that last argument, I would, but the fact is that, as a consultant, the final document is almost always expected to be a powerpoint document. Don't ask me why, it is just so. I am fighting against it but I did not win the battle so far ...