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(problem08). | |
| -compile(export_all). | |
| % | |
| % Eliminate consecutive duplicates of list elements. | |
| % | |
| eliminate_duplicates(L) -> | |
| lists:reverse( | |
| lists:foldl( |
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
| 10 failed: elapsed: 2 | |
| 1 failed: elapsed: 1 | |
| 0 failed: elapsed: 0 | |
| 9 failed: elapsed: 2 | |
| 11 failed: elapsed: 2 | |
| 2 failed: elapsed: 0 | |
| 6 failed: elapsed: 3 | |
| 8 failed: elapsed: 3 | |
| 7 failed: elapsed: 3 | |
| 5 failed: elapsed: 4 |
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
| /* | |
| @TargetNode='localhost' | |
| @GeneratedBy=adamed | |
| @GenerationDate=09/03/2014 22:15:59 | |
| @GenerationHost=ADAMED5 | |
| */ | |
| instance of MSFT_RoleResource as $MSFT_RoleResource1ref | |
| { |
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
| $ErrorActionPreference = "Stop"; | |
| Function Log($m) { Write-Host " $m`n" } | |
| Function Make-WebClient { | |
| $proxy = New-Object -TypeName System.Net.WebProxy | |
| $proxy.Address = $env:http_proxy | |
| $client = New-Object -TypeName System.Net.WebClient | |
| $client.Proxy = $proxy | |
| return $client |
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
| diff --git a/providers/default.rb b/providers/default.rb | |
| index ed48bf1..8e6ef78 100644 | |
| --- a/providers/default.rb | |
| +++ b/providers/default.rb | |
| @@ -20,6 +20,8 @@ | |
| # limitations under the License. | |
| # | |
| +provides :timezone | |
| + |
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
| #[macro_use] | |
| extern crate nom; | |
| use nom::{IResult, digit}; | |
| use std::str; | |
| use std::str::FromStr; | |
| fn identity<T>(a: T) -> T { | |
| a | |
| } |
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
| thumbprint = "1BCCDDBCA398B0F2C5E65D3C8ABF51849A2D10E4" | |
| powershell_script 'configure-lcm' do | |
| code <<-MYCODE | |
| cd c:\\ | |
| configuration LCM | |
| { | |
| param ($thumbprint) | |
| localconfigurationmanager | |
| { | |
| RebootNodeIfNeeded = $false |
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
| WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<Chef::Exceptions::Group: group[group207] (dynamically defined) had an error: Chef::Exceptions::Group: Cannot modify group[group207] - group does not exist!>. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/spec/functional/resource/group_spec.rb:371:in `block (4 levels) in <top (required)>'. | |
| Ran gpasswd -M Gordon,Eric group4202 returned 3>. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configurat |
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
| {pkgs ? import <nixpkgs> {} }: | |
| with pkgs; | |
| let | |
| np = nodePackages.override { generated = ./packages.nix; self = np; }; | |
| in | |
| np.dnschain |
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
| # Use the gummiboot efi boot loader. | |
| #boot.loader.gummiboot.enable = true; | |
| boot.loader.grub.enable = true; | |
| boot.loader.grub.device = "nodev"; | |
| boot.loader.grub.efiSupport = true; | |
| boot.loader.efi.canTouchEfiVariables = true; |
OlderNewer