This file contains 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
<?php | |
class Dal_Content extends Dal_Abstract { | |
const COLLECTION_NAME = 'content'; | |
private $dal_key_content; | |
/** | |
* @param Dal_Key_Content $dal_key_content | |
* @param mixed $db | |
*/ |
This file contains 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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
This file contains 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
... | |
[ 37.678721] systemd-logind[12681]: New seat seat0. | |
[ 37.679539] systemd-logind[12681]: New session c1 of user root. | |
[ 37.689859] systemd-logind[12681]: Failed to create devices:/user/0.user/c1.session: No such file or directory | |
[ 37.710301] systemd-logind[12681]: New session c2 of user root. | |
[ 37.727851] systemd-logind[12681]: Failed to create devices:/user/0.user/c2.session: No such file or directory | |
[ 37.844987] Chromium OS LSM: init_module locking-ignored module="/lib/modules/3.8.11/updates/dkms/vboxdrv.ko" pid=12736 cmdline="modprobe | |
vboxdrv" | |
[ 37.850611] vboxdrv: fAsync=0 offMin=0xc8 offMax=0x874 | |
[ 37.850687] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'. |
This file contains 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 TidyHelper | |
def self.tidy_xml xml_string | |
IO.popen("tidy -q --input-xml y --output-xml y --indent 'auto' --indent-attributes y --indent-spaces '4' --wrap '90'", "w+") do |pipe| | |
buffer = String.new |
This file contains 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
require "spec_helper" | |
describe "An RSpec example using nested before(:all) blocks" do | |
before(:all) do | |
puts "This is called at the beginning of the example" | |
end | |
it "Tests something" do | |
false.should eq(false) | |
end |
This file contains 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
set autoindent | |
set autoread | |
set backspace=eol,start,indent | |
set expandtab | |
set history=700 | |
set nobackup | |
set nowb | |
set noswapfile | |
set ruler | |
set smartindent |
This file contains 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
class TotalPriceGreaterThan | |
def display | |
"Customer spent more than #{threshold}" | |
end | |
def evaluate | |
receipt().total_price() > threshold() | |
end | |
def purchase |
This file contains 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
class GreaterThan | |
def display | |
"more than" | |
end | |
def evaluate one, two | |
one > two | |
end | |
end |
This file contains 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
{ | |
client_id: $client_id, | |
cohort_type: $cohort_type, // Sign up date, first purchase date | |
cohort_bin_width: $cohort_bin_width, // Week, month, quarter, year | |
cohort_value: $cohort_value, // 20120407, 201204, 2012.1, 2012 | |
// Further segmentation? | |
// engagement | |
// location |
This file contains 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
[] |
OlderNewer