Follow Instructions At:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04
But set the .vnc/xstartup file to be:
#!/bin/bash
xrdb $HOME/.Xresources
unset SESSION_MANAGER
https://indiestack.com/feed/ | |
Follow Instructions At:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04
But set the .vnc/xstartup file to be:
#!/bin/bash
xrdb $HOME/.Xresources
unset SESSION_MANAGER
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <err.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
/* This is the original elf.h file from the GNU C Library; I only removed | |
the inclusion of feature.h and added definitions of __BEGIN_DECLS and | |
__END_DECLS as documented in | |
https://cmd.inp.nsk.su/old/cmd2/manuals/gnudocs/gnudocs/libtool/libtool_36.html | |
On macOS, simply copy the file to /usr/local/include/. | |
Mathias Lafeldt <[email protected]> */ | |
/* This file defines standard ELF types, structures, and macros. |
on run {input, parameters} | |
tell application "Google Chrome" | |
activate | |
tell application "System Events" | |
-- key code 123 using {shift down, command down} -- shift-command-left | |
tell application "System Events" to keystroke "d..." using command down | |
end tell | |
end tell | |
// Start with an explanation of what this code is (a Maybe monad implementation) and what a Maybe monad is and why it is useful | |
/* | |
The Maybe monad is a type of monad used in functional programming to handle values that may or may not exist or maybe invalid, | |
and it is particularly useful when dealing with some kind of untyped/unvalidated input. For example, a string that a user inputs. | |
Let's say we want the user to write a number. The string we get as input could be empty or contain letters, etc... | |
It is common to encounter situations where we read values that do not have a, such as when retrieving data from a database or | |
parsing input from a user. When a value is missing, attempting to perform operations on it can lead to errors, crashes, or unexpected behavior in the program. | |
The Maybe monad provides a way to handle these situations in a safe and predictable manner. It works by wrapping a |
// firstNonRepeatingChar is a function that should find the first character in a string of characters that is non repeating | |
// non repeating meaning that it is only found in the input string (str) once | |
// if there are multiple non repeating characters the first non repeating character should be returned | |
// if all characters in the string repeat null should be returned | |
function firstNonRepeatingChar(str: string): string | null { | |
throw new Error("Please implement this function"); | |
} | |
function testCase(description: string, inputString: string, expectedResult: string | null) { |
// firstNonRepeatingChar is a function that should find the first character in a string of characters that is non repeating | |
// non repeating meaning that it is only found in the input string (str) once | |
// if there are multiple non repeating characters the first non repeating character should be returned | |
// if all characters in the string repeat null should be returned | |
function firstNonRepeatingChar(str) { | |
throw new Error("Please implement this function"); | |
} | |
function testCase(description, inputString, expectedResult) { |
Add this to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
Thanks to: https://gist.github.com/emotality/b1bcb2bb8a07921f9c8cad1c969daedf
<key>Duplication</key>
<dict>
<key>Duplicate Current Line</key>
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
<key>Duplicate Lines</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>dev.bbarrows.sourcegraph-local-server</string> | |
<key>ServiceDescription</key> | |
<string>Start the sorucegraph service on boot</string> |