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
| *** Settings *** | |
| Library Selenium2Library | |
| Library Collections | |
| Library Collections | |
| Library String | |
| Library BuiltIn | |
| *** Variables *** | |
| ${SITE_URL} = https://sprint-005-origin.levi-site.com/CA/en_CA/ | |
| ${SELENIUM_TIME_OUT} = 120 |
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
| # PR is a work in progress and shouldn't be merged yet | |
| warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]" | |
| # Warn when there is a big PR | |
| warn "Big PR, consider splitting into smaller" if git.lines_of_code > 500 | |
| # Ensure a clean commits history | |
| if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ } | |
| fail "Please rebase to get rid of the merge commits in this PR" | |
| end |
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
| #!/usr/bin/env ruby | |
| # take annotated string and transforms it to the tr(...) format as well as creating the localizable.strings entry | |
| # arguments | |
| localizable=ARGV[0] | |
| filename=ARGV[1] | |
| def makeFirstLetterUpper(string) | |
| string[0].upcase + string[1..-1] | |
| end |
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
| package com.example.columnspacing | |
| import android.graphics.Paint; | |
| import android.graphics.Rect; | |
| import android.support.v4.content.ContextCompat; | |
| import android.support.v7.widget.GridLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.Log; | |
| import android.view.View; |
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
| package com.xwray.vectorbinding; | |
| import android.databinding.BindingAdapter; | |
| import android.databinding.DataBindingUtil; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.support.graphics.drawable.VectorDrawableCompat; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.widget.TextView; |
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
| protocol Suit { | |
| var name: String { get } | |
| } | |
| struct AntManSuit: Suit { | |
| let name: String | |
| } | |
| struct YellowJacketSuit: Suit { | |
| let name: String |
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
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <span id="x"></span> | |
| <script id="jsbin-javascript"> | |
| // sometimes you just want to know when a variable changed |
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
| { | |
| "countries": [ | |
| { | |
| "country": "Afghanistan", | |
| "states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"] | |
| }, | |
| { | |
| "country": "Albania", | |
| "states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"] | |
| }, |
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
| // instead of var results = YouTubeAnalytics.Reports.query(ids, start-date, end-date, metrics, optionalArgs); | |
| var params = {"method" : "post", | |
| "payload" : {'ids' : query.ids, | |
| "startDate" : startDate, | |
| "endDate": endDate, | |
| "metrics": query.metrics, | |
| "options": JSON.stringify(options) | |
| } | |
| }; | |
| var yt_data = UrlFetchApp.fetch("https://script.google.com/macros/s/YOUR_APP_ID/exec", params); |
NewerOlder