Just a few things that i'm learning
- Built into the AF SDK.
- Uses packages:
- OSIsoft.AF.UI
- OSIsoft.AFSDK
#! ruby | |
# This script will take the words in a file or passed argument and alphabetize them. Then they will be put out with a line for each starting letter. | |
# This will help me with grabbing all the keywords and organzing them alphabetically by line so that in the future adding keywords to the Edict language spec will be easier since they are in an alphabetical list. | |
if ARGV.size == 1 | |
lines = [] | |
input = "" | |
output = "" |
class Chop | |
def chop(target, values) | |
size = values.size | |
if size == 0 | |
-1 | |
elsif size == 1 | |
(values[0] == target ? 0 : -1) | |
else | |
if target < values[size/2] |
#! ruby | |
# This will generate a negative number set that i can use for testing my compression analysis | |
# | |
# Example: | |
# NegNumSet numberOfPoints [max] [freq] | |
# | |
# Arguments (all are optional so far): | |
# 1: numberOfPoints - the number of points to generate | |
# 2: Max - the maximum distance from zero that the data point values can have |
#! ruby | |
# | |
# Gets the unique OPC methods from the OPC analyzer trace log of all the methods TopView Configurator and Engine uses | |
# Assumes that it has been given a valid file name | |
if ARGV.length == 1 and File.exists?(ARGV[0]) | |
input = File.open(ARGV.first, "r").read | |
# Build up a unique array of OPC methods | |
opc_methods = [] |
#! ruby | |
if ARGV.length == 1 | |
if File.exists?(ARGV[0]) | |
file = File.open(ARGV[0], "r") | |
puts "File name: #{ARGV[0]}" | |
count = 1 | |
file.each do |line| | |
line_count = line.split("\t").count |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace RestSharpLearning | |
{ | |
public class Metadata | |
{ | |
public string result_type { get; set; } |
Examples for me since i can't seem to remember how the basics work!
WhenAny
with multiple parameters in the Windows Play applicationHere's a listing of all the GHfW keyboard stuff that i can think of. Now i know them after writing this, but i figured it would be nice to have these documentated somewhere.
Rant: i dont know why people say that Windows users dont like using the keyboard for everything. That's certainly not true for me. Though, that may be the case from using Unix in college.
You can use Alt shortcuts. Hold down Alt and you'll see the underlines. Menus brought up this way have j
& k
navigations! Try it on the tools menu.
Imports Nancy | |
Imports Nancy.Authentication.Forms.ModuleExtensions | |
Imports Nancy.Extensions | |
Imports Nancy.Security | |
Imports System.Dynamic | |
''' <summary> | |
''' Handles all security related requests | |
''' </summary> | |
Public Class Login |