start new:
tmux
start new with session name:
tmux new -s myname
# Your directory path where all files are there which you want to rename | |
# without trailing / (slash) | |
dir_path = "your/dir/path/goes/here" | |
Dir.glob("#{dir_path}/*").each do |file| | |
# squeeze all whitespaces into single whitespaces | |
new_file_name = file.squeeze(' ') | |
base_name = File.basename(new_file_name) | |
if base_name.include?('Xamarin.Android Tutorial - ') |
import React from "react"; | |
import { render } from "react-dom"; | |
const ParentComponent = React.createClass({ | |
getDefaultProps: function() { | |
console.log("ParentComponent - getDefaultProps"); | |
}, | |
getInitialState: function() { | |
console.log("ParentComponent - getInitialState"); | |
return { text: "" }; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Form validation</title> | |
<script> | |
function validate() { | |
var name = document.getElementById('name').value; | |
var password = document.getElementById('password').value; | |
var email = document.getElementById('email').value; |
tap 'caskroom/cask' | |
tap 'caskroom/fonts' | |
brew 'ack' | |
brew 'ctags' | |
brew 'git' | |
brew 'gdrive' | |
brew 'qt@5.5' | |
brew 'imagemagick' | |
brew 'vim' |
[
{ "keys": ["f6"], "command": "expand_fqcn" },
{ "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} },
{ "keys": ["f5"], "command": "find_use" },
{ "keys": ["f4"], "command": "import_namespace" },
{ "keys": ["alt+ctrl+i"], "command": "reindent", "args": {"single_line": false}},
{ "keys": ["shift+f12"], "command": "goto_definition_scope" },
# This is example contains the bare mininum to get nginx going with | |
# unicorn servers. Generally these configuration settings | |
# are applicable to other HTTP application servers (and not just Ruby | |
# ones), so if you have one working well for proxying another app | |
# server, feel free to continue using it. | |
# | |
# The only setting we feel strongly about is the fail_timeout=0 | |
# directive in the "upstream" block. max_fails=0 also has the same | |
# effect as fail_timeout=0 for current versions of nginx and may be | |
# used in its place. |