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
$indexes = "Search", "Locations" | |
Clear-Host | |
echo "Re-building index started" | |
for ($index = 0; $index -lt $indexes.Length; $index++) | |
{ | |
$current_index = $indexes[$index] | |
echo "Processing $current_index" |
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
$AccessKey = "xxxxxxxxx"; | |
$SecretKey = "xxxxxxxxx"; | |
$BucketName = "BUCKET"; | |
$items = Get-S3Object -BucketName $BucketName -AccessKey $AccessKey -SecretKey $SecretKey | |
$items | ForEach-Object -Process { | |
"Downloading: " + $_.Key | echo; | |
Read-S3Object -BucketName $BucketName -Key $_.Key -File $_.Key -AccessKey $AccessKey -SecretKey $SecretKey | |
} |
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
// NOTE: If warnings appear, you may need to retarget this project to .NET 4.0. Show the Solution | |
// Pad, right-click on the project node, choose 'Options --> Build --> General' and change the target | |
// framework to .NET 4.0 or .NET 4.5. | |
module TypeProviders.Main | |
open System | |
open System.IO | |
open Microsoft.FSharp.Data.TypeProviders | |
open FSharp.Data |
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
module DataAccess | |
open System | |
open System.Data | |
open System.Data.Linq | |
open Microsoft.FSharp.Data.TypeProviders | |
open Microsoft.FSharp.Linq | |
type dbSchema = SqlDataConnection<"Data Source=DEV;Initial Catalog=Bookshelf;Integrated Security=SSPI;"> | |
type Book = { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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
# Roman Number Converter | |
romanNumerals = (('M', 1000), | |
('CM', 900), | |
('D', 500), | |
('CD', 400), | |
('C', 100), | |
('XC', 90), | |
('L', 50), | |
('XL', 40), |
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
// Learn more about F# at http://fsharp.net | |
// See the 'F# Tutorial' project for more help. | |
open RestSharp | |
open System | |
[<EntryPoint>] | |
let main argv = | |
let url = "http://demo.limesurvey.org/index.php/admin/remotecontrol" | |
let client = new RestClient(url) | |
let mutable request = new RestRequest () :> IRestRequest |
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
using System; | |
using System.Collections.Generic; | |
namespace Func | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
Func<int, int, int> Add = (x, y) => { |
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
// Learn more about F# at http://fsharp.net | |
// See the 'F# Tutorial' project for more help. | |
open Microsoft.FSharp.Data.TypeProviders | |
type Netflix = ODataService<"http://odata.netflix.com/v2/Catalog/"> | |
[<EntryPoint>] | |
let main argv = | |
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
from openpyxl import load_workbook | |
import os | |
dir_name = os.path.relpath(os.path.dirname(__file__)) | |
file_name = os.path.join(dir_name, 'Data.xlsx') | |
unique_items = [] | |
all_items = [] |