Skip to content

Instantly share code, notes, and snippets.

-module(problem08).
-compile(export_all).
%
% Eliminate consecutive duplicates of list elements.
%
eliminate_duplicates(L) ->
lists:reverse(
lists:foldl(
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
/*
@TargetNode='localhost'
@GeneratedBy=adamed
@GenerationDate=09/03/2014 22:15:59
@GenerationHost=ADAMED5
*/
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
$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
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
+
#[macro_use]
extern crate nom;
use nom::{IResult, digit};
use std::str;
use std::str::FromStr;
fn identity<T>(a: T) -> T {
a
}
thumbprint = "1BCCDDBCA398B0F2C5E65D3C8ABF51849A2D10E4"
powershell_script 'configure-lcm' do
code <<-MYCODE
cd c:\\
configuration LCM
{
param ($thumbprint)
localconfigurationmanager
{
RebootNodeIfNeeded = $false
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
{pkgs ? import <nixpkgs> {} }:
with pkgs;
let
np = nodePackages.override { generated = ./packages.nix; self = np; };
in
np.dnschain
# 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;