This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REVERSE(SUBSTRING(REVERSE([FIELD_NAME]), 0, CHARINDEX('CHAR', REVERSE([FIELD_NAME])))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$i=0; Get-Content .\filePaths.txt -ReadCount 500 | %{$i++; $_ | Out-File out_$i.txt} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ZipAndUpload([string]$ftpUrl, [string]$ftpUsername, [string]$ftpPassword, [string]$inputPath, [string]$filterExpression) { | |
$webclient = New-Object System.Net.WebClient | |
$webclient.Credentials = New-Object System.Net.NetworkCredential($ftpUsername,$ftpPassword) | |
$inputPath = Resolve-Path $inputPath | |
$file = [System.Io.File]::GetAttributes($inputPath) | |
$uniqueFormatPart = Get-Date -format yyyyMMddHHmmssfff | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function GetFilePath(FullPath) | |
Dim filePath, pathArray | |
pathArray = Split(FullPath, "\") | |
pathArray(UBound(pathArray)) = "" | |
filePath = Join(pathArray, "\") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
//take sale amount and tip % | |
//compute the tip amount | |
//print out both the tip and the total amount of the bill | |
let tipAmount saleAmount tipPercentage = tipPercentage/100.00 * saleAmount | |
let totalAmount saleAmount tipPercentage = (tipAmount saleAmount tipPercentage) + saleAmount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
type quote = {message :string; actor: string;} | |
[<EntryPoint>] | |
let main argv = | |
let quotes = [{message="shaken not stirred"; actor="sean connery"}; | |
{message="i'll be back";actor="terminator"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
type story = {verb:string;noun:string;adjective:string;adverb:string} | |
let getResponse choice = | |
match choice with | |
| "yes" -> "That's hilarious. \n" | |
| "no" -> "That sucks. \n" | |
| _ -> "I don't even know how to respond to that. \n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- app/app.html --> | |
<template> | |
<h1>${status}</h1> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var nodemon = require('gulp-nodemon'); | |
gulp.task('browser-sync', ['nodemon'], function() { | |
browserSync.init(null, { | |
proxy: "http://localhost:5001", | |
files: ["app/**/*.*"], | |
browser: "google chrome", | |
port: 7001, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var express = require('express'); | |
var app = express(); | |
app.use(express.static('app')); | |
app.get('/', function(req, res) { | |
res.sendfile('./app/test.html'); | |
}); |
OlderNewer