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
/* ************************************************************************** */ | |
/* */ | |
/* ::: :::::::: */ | |
/* keycode_mac.h :+: :+: :+: */ | |
/* +:+ +:+ +:+ */ | |
/* By: jfortin <jfortin@student.42.fr> +#+ +:+ +#+ */ | |
/* +#+#+#+#+#+ +#+ */ | |
/* Created: 2016/12/17 16:42:55 by jfortin #+# #+# */ | |
/* Updated: 2019/11/10 18:01:39 by jfortin ### ########.fr */ | |
/* */ |
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
const puppeteer = require('puppeteer'); | |
require('dotenv').config() | |
async function main() { | |
const browser = await puppeteer.launch({ | |
headless: true, | |
args: [`--proxy-server=http://scraperapi:${process.env.SCRAPER_API_KEY}@proxy-server.scraperapi.com:8001`] | |
}); | |
const page = await browser.newPage(); | |
await page.goto('https://whatismyipaddress.com/'); |
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
feedOptions: { | |
type: 'all', | |
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, | |
createFeedItems: async (params) => { | |
const {blogPosts, defaultCreateFeedItems, ...rest} = params; | |
return defaultCreateFeedItems({ | |
// keep only the 10 most recent blog posts in the feed | |
blogPosts: blogPosts.filter((item, index) => index < 10), | |
...rest | |
}); |
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
Large Object Motions: | |
( | |
) | |
{ | |
} | |
[[ | |
[] | |
][ | |
]] | |
[m |
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
var https = require('https'), | |
user = process.argv[2], | |
opts = parseOpts(process.argv.slice(3)) | |
request('/users/' + user, function (res) { | |
if (!res.public_repos) { | |
console.log(res.message) | |
return | |
} | |
var pages = Math.ceil(res.public_repos / 100), |
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
######################################## | |
# Fix this, it leaks RAM like crazytown. | |
# Freed 6G of RAM immediately after | |
# removing this card! --spencer | |
######################################## | |
id: crooked_status | |
type: custom:config-template-card | |
variables: | |
- states['sensor.disk_use_percent'].state |
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
h1 span { | |
position: relative; | |
z-index: 1; | |
} | |
h1 span::before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: -5px; |
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: ci | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: calibreapp/image-actions | |
runs-on: ubuntu-latest |
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
const cats = { | |
one: { | |
name: "Molly", | |
owner: "Fred Larkin", | |
color: "Brown", | |
age: 10, | |
kittens: 0 | |
}, | |
two: { | |
name: "Bob", |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: gray; icon-glyph: magic; | |
// Defaults to the latest version and no automatic update; if the file exists, just use it | |
const moment = await require('moment'); | |
// Use any SemVer options to specify a version you want | |
// Refer to the calculator here: https://semver.npmjs.com/ | |
const lodash = await require('lodash@^3.9.1'); |