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}})
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");
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:

@nikz
nikz / component.js
Last active September 18, 2015 13:22
Example of how to create a Showdown extension to use with ember-cli-showdown for rendering Emoji images.
// ...
export default Ember.Component.extend({
// ..
showdownExtensions: ["emoji"]
// ..
})
require 'rubygems'
require 'httparty'
require 'active_support/all'
class TogglClient
USER_AGENT = "TogglToInvoicedGuide"
include HTTParty
base_uri "https://toggl.com/reports/api/v2/"
class InvoiceGeneratorClient
PDF_CONTENT_TYPE = "application/pdf"
JSON_CONTENT_TYPE = "application/json"
include HTTParty
base_uri "https://invoice-generator.com"
class << self
// ...
countries: {
nz: "Awesome",
au: "Boo"
}
// ...
@nikz
nikz / keybase.md
Created April 14, 2015 13:40
Keybase Verification thingee

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 B845 DD4A 4A04 B17C 2C23 D7A6 D981 C76C FDC3 482F

To claim this, I am signing this object: