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
# This script will go through your facebook wall, | |
# pick the posts within 3 days of your birthday | |
# and like all of them, in addition, allowing you | |
# to respond to the wishes with a comment. | |
# You will be prompted to comment each time. | |
# If you just hit 'Enter', it will submit the default comment. | |
# this needs facepy to be installed | |
# run 'pip install facepy' |
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
(function () { | |
var elements = document.getElementsByClassName('ng-scope'); | |
var watches = []; | |
var visited_ids = {}; | |
for (var i=0; i < elements.length; i++) { | |
var scope = angular.element(elements[i]).scope(); | |
if (scope.$id in visited_ids) | |
continue; | |
visited_ids[scope.$id] = true; | |
watches.push.apply(watches, scope.$$watchers); |
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
escape ^xX | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%-Lw%{= kW}%50> %n*%f %t%{= kG}%+Lw%< %{= kG}%-=%D %m/%d/%y | %C:%s %A | %1`%{-}' |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
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
name,ring,quadrant,isNew,description | |
Design system,Adopt,Tools,TRUE,"<p>As application development becomes increasingly dynamic and complex, it's a challenge to deliver accessible and usable products with consistent style. This is particularly true in larger organizations with multiple teams working on different products. <strong>Design systems</strong> define a collection of design patterns, component libraries and good design and engineering practices that ensure consistent digital products. Built on the corporate style guides of the past, design systems offer shared libraries and documents that are easy to find and use. Generally, guidance is written down as code and kept under version control so that the guide is less ambiguous and easier to maintain than simple documents. Design systems have become a standard approach when working across teams and disciplines in product development because they allow teams to focus. They can address strategic challenges around the product itself without reinventing the w |
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 { useEffect, useRef } from 'react'; | |
export type Props = Record<string, any>; | |
export default function useWhyDidComponentUpdate(componentName: string, props: Props) { | |
const prevProps = useRef<Props>({}); | |
useEffect(() => { | |
if (prevProps.current) { | |
const allKeys = Object.keys({ ...prevProps.current, ...props }); |
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 { useEffect, useRef } from 'react'; | |
const PREFIX = '[useComponentDebug]'; | |
export default function useComponentDebug(componentName, props) { | |
const prevProps = useRef({}); | |
console.count(`${PREFIX} ${componentName} render`); | |
useEffect(() => { |