This file contains hidden or 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
Imports System.Web.Mvc | |
Imports DocumentFormat.OpenXml.Packaging | |
Imports DocumentFormat.OpenXml | |
Imports DocumentFormat.OpenXml.Spreadsheet | |
Imports System.IO | |
Imports d = Cpp.BudgetPreparation.Data | |
Namespace Areas.Downloads | |
Public Class ExcelController |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- Le styles --> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
cls | |
$mainFolder=("C:\pbc-2015") | |
$finalFolder=($mainFolder + "\pm\") | |
$lines=Get-ChildItem $mainFolder | | |
Where-Object {$_.name -like "*pm*" -and $_.name -like "*mp3*"} | | |
select name | |
foreach ($line in $lines) { |
This file contains hidden or 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
cls | |
$folder='http://site/wp-content/uploads' | |
$webClient = New-Object System.Net.WebClient | |
$destinationFolder='C:\p2014' | |
#Get the file list from the web page | |
$webString = $webClient.DownloadString($folder) | |
$lines = [Regex]::Split($webString, "<li>") |
This file contains hidden or 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
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
This file contains hidden or 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 calculateReading(chapters, days) { | |
return mike(chapters, days, 1); | |
} | |
function mike(chapters, days, dayNumber, endedOn) { | |
var result = (chapters % days); |
This file contains hidden or 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
cls | |
function DefaultEmptyDate($anydate) { | |
if ($anydate) { | |
$a=[datetime]$anydate | |
} else { | |
$a= [datetime]"1/1/1900" | |
This file contains hidden or 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
cls | |
$mainFolder=("C:\Users\mike-admin\Audio\pbc-2015") | |
$finalFolder=($mainFolder + "\wednesday\") | |
$lines=Get-ChildItem $finalFolder | select name | |
foreach ($line in $lines) { | |
$fn=$line.Name; | |
This file contains hidden or 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 moment = require('moment'); | |
var startDate = new Date(2016, 8, 7); | |
var numberOfDaysToAdd = 7; | |
let nights=39; | |
const m=moment(startDate); | |
var daysFromStart; |
This file contains hidden or 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
Imports System.Data.SqlClient | |
Imports Cpp.DataLayer.SqlCommandHelper | |
Imports Cpp.DataLayer.SqlDataReaderHelper | |
Namespace Data | |
Public MustInherit Class BaseData | |
Protected _dataHandlers As Handlers.OrmHandlers | |
Private _connectionString As String |
OlderNewer