An experiment to build a ChatGPT-like experience by using Deepchat
This does not work well. See this thread in Elixir Slack.
// ==UserScript== | |
// @name Create Google Calendar Event from Selected Text | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Create a Google Calendar event using selected text and current page URL as the description | |
// @match *://*/* | |
// @grant GM_openInTab | |
// @grant GM_registerMenuCommand | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
# frozen_string_literal: true | |
# Run this app as: puma app.ru | |
# Most of this was taken from: https://greg.molnar.io/blog/a-single-file-rails-application/ | |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' |
import svgwrite | |
def create_4player_chess_board(): | |
# Dimensions and colors | |
margin = 10 | |
square_size = 40 | |
board_size = 14 * square_size + 2*margin | |
light_color = '#ebecd0' | |
dark_color = '#739552' | |
light_extra_color = '#fdfee3' |
An experiment to build a ChatGPT-like experience by using Deepchat
This does not work well. See this thread in Elixir Slack.
FYI, we offer free managed hosting to Indian organizations (media, academia, institutions and non-profit/for-profit companies).
We're sharing our approach here to make it easy for those who want to do it themselves.
brew install libpq
bundle config build.pg --with-pg-config="$(brew --prefix)/opt/libpq/bin/pg_config"
brew install icu4c
brew install libidn
bundle config build.idn-ruby --with-idn-dir="$(brew --prefix)"
Not only does it give you control of your own data, it also enables you to explore the amazing possibilities of computation, free from restricted environments like mobile/tablet/desktop/laptop operating systems. As you increase your technical skills and capabilities, you can then use those to solve problems for your own communities.
Familiarity with English language, willingness to learn, and a credit/debit card.
# My solution to a cool math puzzle | |
# Two numbers are chosen randomly, both are positive integers smaller than 100. Sandy is told | |
# the sum of the numbers, while Peter is told the product of the numbers. | |
# Then, this dialog occurs between Sandy and Peter: | |
# Peter: I don’t know the numbers. | |
# Sandy: I don’t know the numbers. |
<!-- I will consider web components ready for use when this piece of HTML works --> | |
<!-- Here we import two different WC frameworks and mix custom input elements in a single form --> | |
<!-- Like regular HTML forms, we expect this form to work without writing any custom Javascript code for data plumbing --> | |
<!-- Some context: This will be possible in future with ElementInternals api which works in Chrome & Firefox, but not in Safari --> | |
<!-- See this conversation: https://twitter.com/nileshtrivedi/status/1521395909535404032 --> | |
<!-- Chrome team's blog post announcing ElementInternals from 2019: https://web.dev/more-capable-form-controls/ --> | |
<!-- Importing shoelace.style for the sl-rating element used below --> |
# NCERT books are excellent but being altered for political or other reasons | |
# See: https://twitter.com/SouthAsiaIndex/status/1518062204058103809 | |
# To download the entire current set, run this script with Ruby | |
require 'httparty' | |
source = HTTParty.get('https://ncert.nic.in/textbook.php').force_encoding("ISO-8859-1").encode("utf-8", replace: nil) | |
# book names are like aeen1dd.zip | |
# First letter tells the class number a to l is class 1 to class 12. m stands for class 11 and 12 combined |