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 "json" | |
require "selenium-webdriver" | |
require "rspec" | |
require 'appium_lib' | |
include RSpec::Expectations | |
def desired_caps | |
{ | |
caps: { |
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 BinaryHeap | |
constructor: -> | |
@array = [] | |
@rootIndex = 1 | |
insert: (element) -> | |
@array.push element | |
@percolateUp @lastLeafIndex() | |
deleteMaximum: -> |
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
sinon = require('sinon') | |
chai = require('chai').use(require 'sinon-chai') | |
expect = chai.expect | |
PO = require '../../lib/part_one_movie.coffee' | |
knex = require('knex')(require '../../config/database_test') | |
describe "PartOneMovie", -> | |
describe "save", -> | |
context "when no error has caused during transaction", -> | |
beforeEach (done) -> |
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
"use strict" | |
module.exports = (grunt) -> | |
require('load-grunt-tasks')(grunt) | |
grunt.initConfig | |
coffee: | |
source: | |
expand: true, | |
cwd: 'lib/', | |
src: ['**/*.coffee'], |
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
(?<=>).{1,}(?=</a>) |
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
// 使い方 | |
// | |
// ui/button/*.pngをspriteにしたいとして、その中にmain_button-full.pngが存在するとき、.hogeのbackgroundにその画像を指定したい場合は、 | |
// | |
// .hoge { | |
// @include sprite-background("ui/button/*.png", "main_button-full"); | |
// } | |
// | |
// とする。なお、sprite-mapやsprite-urlを自前で定義する必要はない。 | |
// |
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
%container_decoration { | |
position: relative; | |
content: " "; | |
display: block; | |
width: 100%; | |
} | |
@function middle-image-name($name) { | |
@return $container-image-path + $name + "__middle.png"; | |
} |
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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
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
# | |
# Generated by Chef for www4177uo | |
# | |
# Local modifications will be overwritten. | |
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. |
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
core@vxxx-xxx-xxx-xxx ~ $ sudo coreos-install -d /dev/vda | |
Downloading and verifying coreos_production_image.bin.bz2... | |
gpg: Signature made Mon Feb 17 23:01:34 2014 UTC using RSA key ID xxxxxxxx | |
gpg: key xxxxxxxx marked as ultimately trusted | |
gpg: checking the trustdb | |
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model | |
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u | |
gpg: Good signature from "CoreOS Buildbot (Offical Builds) <[email protected]>" | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed |