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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.38177490234375</real> |
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
dist |
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 readline = require("readline"); | |
const { Readable } = require("stream"); | |
const readableStream = new Readable(); | |
readableStream.push("3 abb aab ababa"); | |
readableStream.push(null); | |
const input = readline.createInterface({ | |
input: readableStream, | |
output: process.stdout, |
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
from typing import Callable, Coroutine, List | |
import aiohttp | |
import asyncio | |
async def http_get(session: aiohttp.ClientSession, url: str) -> Coroutine: | |
"""Execute an GET http call async """ | |
async with session.get(url) as response: | |
resp = await response.json() | |
return resp |
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 { data } from "./data.js"; | |
const serializeChannel = (channel) => ({ | |
id: channel.SK, | |
channel: channel.nameChannel, | |
}); | |
function getUniqueArrayByKey(dataList, key = "SK") { | |
const arrayMap = dataList.map((data) => [data[key], serializeChannel(data)]); | |
const uniqueMap = new Map(arrayMap); |
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 axios = require("axios"); | |
const URL = "http://flaskapi-env.eba-wnb42kap.us-east-1.elasticbeanstalk.com"; | |
const HEADERS = { | |
Authorization: "Bearer c3f40934-a078-44a8-b6c7-f9a37fd721a7", | |
"Content-Type": "application/json", | |
}; | |
function sliceIntoChunks(arr, chunkSize) { |
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
[options] | |
# odoo.conf | |
# | |
# WARNING: | |
# If you use the Odoo Database utility to change the master password be aware | |
# that the formatting of this file WILL be LOST! A copy of this file named | |
# /etc/odoo/openerp-server.conf.template has been made in case this happens | |
# Note that the copy does not have any first boot changes | |
#----------------------------------------------------------------------------- | |
# Odoo Server Config File - TurnKey Linux |
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 component(strings, ...values) { | |
return function (props) { | |
let newContent = strings.slice(); | |
values.forEach((value, index) => { | |
newContent[index] += props[value]; | |
}); | |
return newContent.join(""); | |
}; | |
} |