brew install dnsmasq
echo '/*.local.ru/*.local.ir/*.local.com/*.local.co.il/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf
| <scheme name="Brackets" version="142" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.0" /> | |
| <font> | |
| <option name="EDITOR_FONT_NAME" value="Source Code Pro" /> | |
| <option name="EDITOR_FONT_SIZE" value="12" /> | |
| </font> | |
| <font> | |
| <option name="EDITOR_FONT_NAME" value="Monospaced" /> | |
| <option name="EDITOR_FONT_SIZE" value="12" /> | |
| </font> |
| 'use strict'; | |
| var SomePage = require('../pages/SomePage'); | |
| describe('some', function () { | |
| it('feature', function () { | |
| var somePage = new SomePage(); | |
| expect(somePage.items.then(function (items) { | |
| items[0].button.click(); | |
| return items[0].pane.isDisplayed(); |
| #!/bin/sh | |
| # Adds column to CSV file | |
| # addColumn.sh "field" "value" input.csv | |
| TITLE=$1 | |
| VALUE=$2 | |
| INPUT=$3 | |
| OUTPUT=${INPUT%%.csv}"_fixed.csv" | |
| sed '1!s/$/,"'$VALUE'"/;1s/$/,"'$TITLE'"/g' $INPUT > $OUTPUT |
| #!/usr/bin/python | |
| ''' | |
| Simple socket server using threads | |
| http://tools.ietf.org/html/rfc6455 | |
| ''' | |
| import socket | |
| import sys | |
| HOST = '' # Symbolic name, meaning all available interfaces |
| #!/bin/sh | |
| # Converts original charset of the file to UTF-8 | |
| # require iconv, tr, grep | sed | awk | |
| # grep wins: https://davidlyness.com/post/the-functional-and-performance-differences-of-sed-awk-and-other-unix-parsing-utilities | |
| # grep -oe'[^=]*$' | |
| # sed 's/[^=]*[=]//g' | |
| # awk -F= '{print$2}' | |
| for arg in "$@"; do | |
| TMP=".${arg##*/}.$$"; |
| #!/bin/bash | |
| F_NAME=$1 | |
| CHUNKS=$2 | |
| ALL=`wc -l $F_NAME | awk '{print $1}'` | |
| N=`expr $ALL / $CHUNKS` | |
| A=0 | |
| # Getting CSV head | |
| #head -n1 $F_NAME > ${F_NAME%%.csv}_head.csv |
| var Color = function() { | |
| this.r = this.g = this.b = 0; | |
| this.h = this.s = this.l = 0; | |
| this.a = 1; | |
| }; | |
| /** RGB */ | |
| Color.prototype.cssRGB = function() { | |
| return "rgb("+Math.round(255*this.r)+","+Math.round(255*this.g)+","+Math.round(255*this.b)+")"; | |
| }; | |
| Color.prototype.cssRGBA = function() { |
| <!DOCTYPE html> | |
| <html lang="ru"> | |
| <head> | |
| <link type="text/css" href="style.css" rel="stylesheet"/> | |
| </head> | |
| <body> | |
| <script src="myLib.js"></script> | |
| <script src="myLib.Observable.js"></script> |