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
# The MIT License (MIT) | |
# Copyright (c) 2016 Vladimir Ignatev | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the Software | |
# is furnished to do so, subject to the following conditions: | |
# |
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
{ | |
"basics": { | |
"name": "Thomas Edison", | |
"label": "Inventor and Businessman", | |
"picture": "https://example.com/photo.jpg", | |
"email": "thomas.edison@example.com", | |
"phone": "(123) 456-7890", | |
"website": "https://thomasedison.com", | |
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.", | |
"location": { |
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
#!/bin/bash | |
# Function to display help | |
usage() { | |
echo "Usage: $0 [-o output_file] [-v voice] [-m model] [-i input_file] \"input_string\"" | |
exit 1 | |
} | |
# Default values | |
output_file="speech.mp3" |
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
implementation("com.airbnb.android:lottie-compose:4.0.0") |
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
You are the PMI Think Robot. Your purpose is to provide good input for thinking about problems being asked by me. I will share you some ideas in free form. Every idea will start from the word IDEA. Then you will help in lateral thinking. You respond in a form of a table that contains three columns: Plus, Minus, Interesting. Let's call this table The PMI Table. | |
In Plus column of The PMI Table, you tell positive sides about idea that I ask. In Minus column of The PMI Table, you tell negative sides and consequences about idea provided. In Interesting column of The PMI Table you write everything that you find unexpected, clever or basically inspiring in idea provided. Your answer in every column of The PMI Table should be in form of numbered list. You try to do your best and provide every aspect specific for situation provided. If more context required, you'd ask for every clarification needed. After my answer you try again to generate The PMI Table. |
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
def dict_to_redis_hset(r, hkey, dict_to_store): | |
""" | |
Saves `dict_to_store` dict into Redis hash, where `hkey` is key of hash. | |
>>> import redis | |
>>> r = redis.StrictRedis(host='localhost') | |
>>> d = {'a':1, 'b':7, 'foo':'bar'} | |
>>> dict_to_redis_hset(r, 'test', d) | |
True | |
>>> r.hgetall('test') |
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 Foundation | |
class PowerSetIterator<T> { | |
var sourceSet: [T] | |
var l: Int | |
var setlen: Int | |
var ones: [Int] | |
var lastDigit: Int? | |
var yield1: Bool |
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
# MIT License | |
# | |
# Copyright (c) 2021 Vladimir Ignatev <ya.na.pochte@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
/* | |
* The following snippet is from the Mozilla Developer Portal documentation. | |
* Utility functions toBinary() and fromBinary() make possible to use btoa() and atob() | |
* with UTF strings. | |
* | |
* The original example here: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa | |
* For additional information see: https://base64tool.com/uncaught-domexception-btoa-on-window/ | |
* | |
* Usage example: | |
* > btoa(toBinary('☸☹☺☻☼☾☿')) |
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
Date | Open | High | Low | Close | Volume | |
---|---|---|---|---|---|---|
2001-01-03 00:00:00 | 8.8000000 | 8.8000000 | 8.8000000 | 8.8000000 | 100 | |
2001-01-04 00:00:00 | 8.8000000 | 8.8000000 | 8.8000000 | 8.8000000 | 100 | |
2001-01-05 00:00:00 | 8.7000000 | 8.7000000 | 8.7000000 | 8.7000000 | 100 | |
2001-01-10 00:00:00 | 8.1900000 | 8.2900000 | 8.1900000 | 8.2900000 | 200 | |
2001-01-12 00:00:00 | 8.4700000 | 8.4700000 | 8.4700000 | 8.4700000 | 100 | |
2001-01-15 00:00:00 | 8.4000000 | 8.4000000 | 8.4000000 | 8.4000000 | 29400 | |
2001-01-16 00:00:00 | 8.3000000 | 8.3000000 | 8.3000000 | 8.3000000 | 29400 | |
2001-01-17 00:00:00 | 8.3000000 | 8.4000000 | 8.3000000 | 8.4000000 | 26000 | |
2001-01-18 00:00:00 | 8.5000000 | 8.5000000 | 8.3000000 | 8.4000000 | 15700 |
NewerOlder