A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
/* | |
* Infinite Scroll using Remix Run | |
* Based on client-side Scroll position | |
* Full Article here: https://dev.to/ptenteromano/infinite-scroll-with-remix-run-1g7 | |
*/ | |
import { useEffect, useState, useCallback } from "react"; | |
import { LoaderFunction, useLoaderData, useFetcher } from "remix"; | |
import { fetchPhotos } from "~/utils/api/restful"; | |
import type { PhotoHash } from "~/utils/api/types"; |
function Main() { | |
var num = 1; | |
for (var j = 0; j < app.activeDocument.layerSets[0].layers.length; j++) { | |
for (var k = 0; k < app.activeDocument.layerSets[1].layers.length; k++) { | |
for (var l = 0; l < app.activeDocument.layerSets[2].layers.length; l++) { | |
var groupChildArr1 = app.activeDocument.layerSets[0].layers; | |
var groupChildArr2 = app.activeDocument.layerSets[1].layers; |
import { Dialect } from 'sequelize/types'; | |
export const config = { | |
database: { | |
dialect: 'postgres' as Dialect, | |
host: 'ruby.db.elephantsql.com', | |
port: 5432, | |
username: 'your-username-here', | |
password: 'your-password-here', | |
database: 'your-database-here', |
/* | |
Min 1 number | |
Min 1 A-Z | |
Min 1 a-z | |
Min value 8 | |
max value 25 | |
*/ | |
const re = new RegExp(/(?=^.{8,25}$)(?=(?:.*?\d){1})(?=.*[a-z])/); |
// is-iphone-x.js | |
import { Dimensions, Platform } from 'react-native'; | |
export function isIphoneX() { | |
const dim = Dimensions.get('window'); | |
return ( | |
// This has to be iOS | |
Platform.OS === 'ios' && |
#!/bin/bash | |
PARAMS=('-m 6 -q 70 -mt -af -progress') | |
if [ $# -ne 0 ]; then | |
PARAMS=$@; | |
fi | |
cd $(pwd) |
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
# Hosts file to access US Netflix using Unblock US without their DNS. | |
67.216.222.61 movies.netflix.com | |
67.216.222.65 cbp-us.nccp.netflix.com | |
67.216.222.130 movies1.netflix.com | |
67.216.222.104 movies2.netflix.com | |
147.255.171.14 netflix.com | |
147.255.171.7 moviecontrol.netflix.com | |
69.197.181.166 api-global.netflix.com | |
67.216.222.83 api-us.netflix.com | |
147.255.227.2 api.netflix.com |