$ ./te2t.py <.textpander file> <.txt file>
Import the .txt file into Texpand app.
#!/usr/local/bin/node | |
/* ProductHunt posts upvotes count and Emoji on change :) | |
* BitBar plugin | |
* | |
* by Varun Malhotra | |
* (c) 2016 | |
* LICENSE - MIT | |
* | |
* Shows current votes count of each post and notification bell (🔔) on change |
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
#-----------Lets you select the file---------------------------- | |
Function Get-OpenFile($initialDirectory){ | |
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null | |
$OpenFile = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFile.initialDirectory = $initialDirectory | |
$OpenFile.Title = "Choose report to open" | |
$OpenFile.filter = "All files (*.xlsx*)| *.xlsx*" | |
$OpenFile.DefaultExt = "xlsx" | |
$OpenFile.AddExtension = $True | |
if($openFile.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK){ |
function Get-DotNetVersion { | |
[cmdletbinding()] | |
Param( | |
[Parameter(ValueFromPipeline=$True)] [object] $ComputerName | |
) | |
BEGIN { | |
} | |
PROCESS { | |
if (-not $ComputerName) { |
measure-command {ps | Format-Markdown} |
function getSelectedOrURL(callback) { | |
chrome.tabs.query({ | |
active: true, | |
windowId: chrome.windows.WINDOW_ID_CURRENT | |
}, function(tab) { | |
chrome.tabs.sendMessage(tab[0].id, { | |
method: "getSelection" | |
}, function(response) { | |
if (response.data === null) { | |
chrome.tabs.query({ |
var express = require('express'); | |
var cheerio = require('cheerio'); | |
var request = require('request'); | |
var app = express(); | |
var wordOfDay = []; | |
app.get('/', function (req, res) { | |
// allow access from other domains | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Headers', 'X-Requested-With'); |
#!/usr/bin/env ruby | |
atom_version = `/usr/local/bin/atom --version`.chomp | |
print "Atom v#{atom_version}" |
param | |
( | |
[string]$PathToModule='C:\temp\Cos.psm1', | |
[string]$ModuleName = 'cos', | |
[string]$OutputFolderPath='C:\temp', | |
[string]$ResultFileNamePrefix='cos_module', | |
[string]$ResultFileNameSuffix = 'md' | |
) | |