iex> 1 # integer
iex> 0x1F # integer
iex> 1.0 # float
iex> true # boolean
iex> :atom # atom / symbol
iex> "elixir" # string
iex> [1, 2, 3] # list
iex> {1, 2, 3} # tuple
function FindProxyForURL(url, host) { | |
host = host.toLowerCase(); | |
if (dnsDomainIs(host, "linkedin.com") || | |
dnsDomainIs(host, "rutracker.org") || | |
dnsDomainIs(host, "ipleak.net") || | |
dnsDomainIs(host, "telegram.org") || | |
dnsDomainIs(host, "t.me") || | |
dnsDomainIs(host, "telegra.ph") || | |
dnsDomainIs(host, "psb4ukr.org") || | |
dnsDomainIs(host, "plus.pl") || |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
#!/bin/sh | |
# (c) Malo Skrylevo | |
set -x | |
#service $IPTABLES restart | |
# interfaces IF0 - external LAN iface, IF1,IF2 - internal LAN ifaces | |
IF0=enp2s0 |
#!/bin/bash | |
sharp_radius=5 | |
sharp_sigma=$(dc <<< 4k${sharp_radius}vp) | |
sharp_amount=1.2 | |
sharp_threshold=0.003 | |
a1=0 | |
b1=0 | |
c1=1.2 | |
d1=-0.1 |
# origin is here: http://stackoverflow.com/questions/11784109/detecting-operating-systems-in-ruby | |
require 'rbconfig' | |
module SpecModule | |
def self.os | |
@os ||= ( | |
host_os = RbConfig::CONFIG['host_os'] | |
case host_os | |
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ | |
:windows |
.MODEL SMALL | |
COD SEGMENT PARA | |
ASSUME CS:COD,DS:COD | |
ORG 100H | |
START: | |
XOR AX,AX | |
MOV CX,256 | |
LEA DI,BUF | |
PUSH CS | |
PUSH CS |
ASSUME CS:CGR,DS:CGR | |
CGR GROUP COD,DAT | |
COD SEGMENT BYTE | |
ORG 100H | |
ZIPCOMM proc | |
LEA SI,C_ | |
CALL WW | |
MOV SI,80H | |
MOV AH,'/' | |
CALL READ_FILE_STRING |
#!/usr/bin/ruby | |
require 'net/ftp' | |
require 'net/http' | |
require 'fileutils' | |
class String | |
def to_l(srcl,dstl) | |
val = gsub(/(["'\&\(\)])/) { "\\" + $1 } | |
`echo #{val} |iconv -f #{srcl} -t #{dstl}`.sub(/\n/,"") | |
end |