Skip to content

Instantly share code, notes, and snippets.

@driver = Selenium::WebDriver.for(:chrome, options: options)
@driver.execute_cdp('Emulation.setDefaultBackgroundColorOverride', {color: {r: 0, g: 0, b: 0, a: 0}})
~/projects/[project](master) $ git pull
Current branch master is up to date.
~/projects/[project](master) $ script/plugin install git://github.com/technoweenie/relative_time_helpers.git/
Initialized empty Git repository in /Users/nik/projects/[project]/vendor/plugins/relative_time_helpers/.git/
fatal: bad revision 'HEAD'
refusing to pull with rebase: your working tree is not up-to-date
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Component.extend({
formattedName: computed("player.name", function() {
const name = this.get("player.name");
const number = this.get("player.number");
class InvoiceGeneratorClient
PDF_CONTENT_TYPE = "application/pdf"
JSON_CONTENT_TYPE = "application/json"
include HTTParty
base_uri "https://invoice-generator.com"
class << self
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
testing: computed(function() {
console.log("hi")
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});

Keybase proof

I hereby claim:

  • I am nikz on github.
  • I am nikz (https://keybase.io/nikz) on keybase.
  • I have a public key whose fingerprint is 806D 27A5 B034 039B 605C DF62 DE5D 22DB 2B29 848D

To claim this, I am signing this object:

class GeoBoundingBox
attr_accessor :lat, :lon, :distance
WGS84_MAJOR_AXIS = 6378137
WGS84_MINOR_AXIS = 6356752.3142
WGS84_FLATTENING = 1 / 298.257223563
def initialize(lat, lon, distance)
@lat = lat
Date.prototype.startOfWeek = function() {
var dayOfMonth = this.getDate() - this.getDay();
var month = (dayOfMonth > 0) ? this.getMonth() : this.getMonth() - 1;
var year = (month > 0) ? this.getFullYear() : this.getFullYear() - 1;
if (dayOfMonth < 0) {
dayOfMonth = this.getDaysInMonth(month) - (dayOfMonth * -1)
}
module Paperclip
class Attachment
def default_url(style_name = default_style)
interpolate(@default_url, style_name)
end
end