Install Required libraries:
sudo apt-get update && sudo apt-get install imagemagick gs
create directory to test commands
mkdir -p pdf_conversion/{merged,split}
cd pdf_conversion
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
$today = [System.DateTime]::Today.ToString("yyyyMMdd") | |
Import-Csv -Header Column1,Column2 -Delim ',' 'C:\sample.csv' | | |
ForEach { | |
New-Object psobject -Property @{Date=$today;Col1=$_.Column1; Col2=$_.Column2} | |
} | Select-Object Date,Col1,Col2 | Export-Csv -NoTypeInformation 'C:\sample.csv' |
/* | |
Author: https://github.com/gorhill | |
Source: https://gist.github.com/gorhill/5285193 | |
A Go function to render a number to a string based on | |
the following user-specified criteria: | |
* thousands separator | |
* decimal separator |
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows |
var https = require('https'), | |
user = process.argv[2], | |
opts = parseOpts(process.argv.slice(3)) | |
request('/users/' + user, function (res) { | |
if (!res.public_repos) { | |
console.log(res.message) | |
return | |
} | |
var pages = Math.ceil(res.public_repos / 100), |
from __future__ import absolute_import | |
try: | |
import cStringIO as StringIO | |
except ImportError: | |
import StringIO | |
# Standard Library | |
import re | |
import string |
// haversin(θ) function | |
func hsin(theta float64) float64 { | |
return math.Pow(math.Sin(theta/2), 2) | |
} | |
// Distance function returns the distance (in meters) between two points of | |
// a given longitude and latitude relatively accurately (using a spherical | |
// approximation of the Earth) through the Haversin Distance Formula for | |
// great arc distance on a sphere with accuracy for small distances | |
// |
function setLatLng(dataset) { | |
var lat = dataset.lat | |
var lng = dataset.lng | |
return new L.LatLng(lat, lng) | |
} | |
function latLngRadians(dataset) { | |
return _.map(dataset, function(item) { | |
var latRad = item.lat*(Math.PI/180) | |
var lngRad = item.lng*(Math.PI/180) |
sudo apt-get update && sudo apt-get install imagemagick gs
mkdir -p pdf_conversion/{merged,split}
cd pdf_conversion
-#, --progress-bar
Make curl display a simple progress bar instead of the more informational standard meter.
-b, --cookie <name=data>
Supply cookie with request. If no =
, then specifies the cookie file to use (see -c
).
-c, --cookie-jar <file name>
File to save response cookies to.