You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
[Desktop Entry] | |
Version=1.0 | |
Name=Telegram Desktop | |
Comment=Official desktop version of Telegram messaging app | |
TryExec=/opt/Telegram/Telegram | |
Exec=/opt/Telegram/Telegram -- %u | |
Icon=telegram | |
Terminal=false | |
StartupWMClass=TelegramDesktop | |
Type=Application |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
This is a short guide on how to install KDE 1 on Arch Linux.
Install qt1-git
, kde1-kdelibs-git
& kde1-kdebase-git
from the AUR. Extra applications are avaiable in kde1-kdenetwork-git
, kde1-kdetoys-git
, kde1-kdegames-git
and kde1-kdeutils-git
.
You also have to have xorg-server
& xorg-xinit
installed. I have not tested KDE1 with a login manager (like sddm
) so I can't help you with that.
Edit ~/.xinitrc
and add the following lines
export PATH=/opt/kde1/bin:$PATH
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>DejaVu Sans</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>FreeSans</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit> |
require 'net/http' | |
require 'open-uri' | |
require 'open3' | |
require 'json' | |
require 'optparse' | |
require 'tempfile' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: #{__FILE__} [options]" |
Last Updated: March 2023
IMPORTANT: Ignore the out-of-date steps below for getting Chromium keys.
Instead, read this up-to-date guide (Jan 2023) written by @LearningToPi.
P.S. Thank you to every contributor below who provided tips over the years on what should be a straightforward process: setting up Chromium for local development.
Long live the web!
Crystal 0.9.1 with Kemal
require "kemal"
ws "/" do |socket|
socket.on_message do |message|
end
# app/models/experience.rb | |
# | |
# == Schema Information | |
# | |
# Table name: experiences | |
# | |
# id :integer not null, primary key | |
# title :string | |
# description :text | |
# created_at :datetime not null |
It's a common misconception that [William Shakespeare][1] and [Miguel de Cervantes][2] died on the same day in history - so much so that UNESCO named April 23 as [World Book Day because of this fact][3]. However because England hadn't yet adopted [Gregorian Calendar Reform][4] (and wouldn't until [1752][5]) their deaths are actually 10 days apart. Since Ruby's Time
class implements a [proleptic Gregorian calendar][6] and has no concept of calendar reform then there's no way to express this. This is where DateTime
steps in:
>> shakespeare = DateTime.iso8601('1616-04-23', Date::ENGLAND)
=> Tue, 23 Apr 1616 00:00:00 +0000
>> cervantes = DateTime.iso8601('1616-04-23', Date::ITALY)
=> Sat, 23 Apr 1616 00:00:00 +0000
call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 }) | |
function NERDTreeMyOpenInTab(node) | |
call a:node.open({'reuse': "all", 'where': 't'}) | |
endfunction |