Forked from Sreekanth S's Pen groceries.
A Pen by Captain Anonymous on CodePen.
@Test public void testSimpleScroll3() throws Exception { | |
try { | |
client.admin().indices().prepareDelete("test1").execute().actionGet(); | |
client.admin().indices().prepareDelete("test2").execute().actionGet(); | |
client.admin().indices().prepareDelete("unrelatedindex").execute().actionGet(); | |
} catch (Exception e) { | |
// ignore | |
} | |
client.admin().indices().prepareCreate("test1").setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 2)) |
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
-- Mountain Lion (10.8) fixed this oversight. The DigitalColor Meter now remembers it's settings on exit. | |
-- DigitalColor Meter defaults to displaying color values in decimal and will not remember hexidecimal preferences on close. So this script launches the app and tells it to display values in hex. It is meant to be launched via QuickSilver or a launcher. | |
-- Checks to see if System Preferences > Universal Access > Enable access for assistive devices is checked | |
-- This option is required for "System Events" to use the keystroke and key code commands. | |
-- If it is not checked, your password is required to make the change | |
tell application "System Events" to if not UI elements enabled then | |
set UI elements enabled to true |
# fork it | |
# | |
# make it print all true with only ONE LINE OF CODE | |
class A | |
def A.foo | |
@foo ||= ( | |
if self == A | |
'42.0' | |
else |
Forked from Sreekanth S's Pen groceries.
A Pen by Captain Anonymous on CodePen.
# A B C D | |
# E F G H | |
# I J K L | |
# M N O P | |
# a b c d h l p o n m i e f g k j" | |
# top, right, bottom, left | |
# | |
defmodule Spiralizer do | |
defp top(acc, []) do |
Code.load_file("Spiralizer.exs", __DIR__) | |
ExUnit.start | |
ExUnit.configure exclude: :pending, trace: true | |
defmodule SpiralizerTest do | |
use ExUnit.Case | |
test "empty list" do | |
data = [] |