(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# For a sharp UI you have to download the latest JDK for Mac OS X from Oracle | |
# and then replace MATLAB's outdated built-in JRE with a symlink the current one | |
mbp-retina:philipp$ cd /Applications/MATLAB_R2013b.app/sys/java/jre/maci64/ | |
mbp-retina:philipp$ mv jre/ jre.original | |
mbp-retina:philipp$ ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/ jre |
# Original Rails controller and action | |
class EmployeesController < ApplicationController | |
def create | |
@employee = Employee.new(employee_params) | |
if @employee.save | |
redirect_to @employee, notice: "Employee #{@employee.name} created" | |
else | |
render :new | |
end |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// References: | |
// http://manual.mailmate-app.com/custom_key_bindings | |
// http://manual.mailmate-app.com/key_binding_selectors | |
// Custom | |
"E" = "expandAll:"; // expands all threads in current view | |
"T" = "showThread:"; // lower-case t doesn't work because it's bound to tags (?) | |
"l" = "copyAsLink:"; // copies message:// link for selected message | |
"y" = ( "selectWithFilter:", "#thread-id = ${#thread-id}", "archive:"); // http://protips.maxmasnick.com/mailmate-keyboard-shortcut-to-archive-all-messages-in-a-thread | |
"@[" = "backInHistory:"; // moves back in history, e.g. back to mailbox after performing a search. ESC also works for this. |
# coding: utf-8 | |
require 'rubygems' | |
require 'hpricot' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'safe_yaml' | |
require 'time' | |
require 'uri' | |
require 'open-uri' |
echo 'Agnes' | |
say -v 'Agnes' "Isn't it nice to have a computer that will talk to you?" | |
echo 'Albert' | |
say -v 'Albert' "I have a frog in my throat. No, I mean a real frog!" | |
echo 'Alex' | |
say -v 'Alex' "Most people recognize me by my voice." | |
echo 'Alice' | |
say -v 'Alice' "Salve, mi chiamo Alice e sono una voce italiana." | |
echo 'Alva' | |
say -v 'Alva' "Hej, jag heter Alva. Jag är en svensk röst." |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
(defun workflowy-to-org-mode () | |
(interactive) | |
(let (count) | |
(while (not (eobp)) | |
(setq count 0) | |
(while (looking-at " ") | |
(setq count (1+ count)) | |
(forward-char 1)) | |
(forward-char 1) | |
(delete-region (point-at-bol) (point)) |
(import | |
'[java.time ZonedDateTime] | |
'[java.time.format DateTimeFormatter]) | |
(.. (ZonedDateTime/now) (format DateTimeFormatter/ISO_INSTANT)) |