start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
function sortTableByColorSets() { | |
// store an empty object to contain all colors | |
var holdingCell = {}; | |
// loop over the colors in the predfined colors array. | |
for (var color in colors) { | |
// get the color value and create a stub for it in the object. e.g object.colorname | |
colorValue = colors[color]; |
public class FormHandler : DelegatingHandler | |
{ | |
protected override System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) | |
{ | |
if (request.Content != null && request.Content.Headers.ContentType != null && | |
request.Content.Headers.ContentType.MediaType == "application/x-www-form-urlencoded") | |
{ | |
var routeData = request.Properties["MS_HttpRouteData"] as IHttpRouteData; | |
var form = request.Content.ReadAsFormDataAsync().Result; |
'use strict'; | |
var app = angular.module('vulcanApp'); | |
app.filter('byMultipleValues', function() { | |
return function(data, params) { | |
if (params.length === 0) { | |
return data; | |
} | |
return data.filter(function(element, index) { |
'use strict'; | |
function exampleController($scope, requestHandler) { | |
// notifications are enabled by default, if you do not wish the notification | |
// to show provide the stopNotification property with the value true | |
requestHandler({ | |
method: 'GET', | |
url: 'http://localhost/api/gist/1', | |
// stopNotification: true // will stop the notification from being displayed. |
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
Press minus + shift + s
and return
to chop/fold long lines!
imap <f2> <c-o>:call ToggleHebrew()<cr> | |
map <f2> :call ToggleHebrew()<cr> | |
func! ToggleHebrew() | |
if &rl | |
set norl | |
set keymap= | |
else | |
set rl | |
set keymap=hebrew |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)