Skip to content

Instantly share code, notes, and snippets.

View cspanring's full-sized avatar

Christian Spanring cspanring

View GitHub Profile
@nightire
nightire / debug_ember_app_in_vscode.md
Created May 17, 2018 11:21
How to debug an ember application with VS Code

Step 1: Launch Google Chrome with Remote Debugging support

  • windows: <path to chrome>/chrome.exe --remote-debugging-port=9222
  • macOS: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  • linux: google-chrome --remote-debugging-port=9222

Step 2: Install "Debugger for Chrome" extension

Step 3: Setup your application

@poteto
poteto / FBGroupMemberRemover.js
Last active September 11, 2019 17:49
Delete everyone from your Facebook group! Thanks for the dark UX, FB
class FBGroupMemberRemover {
constructor() {
this.adminText = 'Admin';
this.removeMemberModalHeadingText = 'Remove Member';
this.memberElementSelector = '[data-name="GroupProfileGridItem"]';
this.memberContextMenuSelector = 'button[aria-label="Member Settings"]';
this.removeMemberButtonSelector = 'a[data-testid="leave_group"]'
this.removalOptions = {
@san650
san650 / comma-separated-selectors.js
Last active November 29, 2018 13:19
ember-cli-page-object deprecations
// ID:ember-cli-page-object.comma-separated-selectors
// Comma separated selectors are not supported in ember-cli-page-object. These selectors are going to throw an error in ember-cli-page-object v2.0.
// BAD
// <h1>A big title</h1>
// <h2>A smaller title</h2>
import { create, text } from "ember-cli-page-object";
@caseywatts
caseywatts / 0 README.md
Last active May 2, 2024 06:06
d3 & c3 npm shim to es6 module for Ember
@timmyomahony
timmyomahony / readme.md
Last active November 23, 2018 17:49
Making Ember addons FastBoot 1.0 compatible

Converting addons to Fastboot v1.0

Fastboot is currently transitioning to version 1.0 which introduces some breaking changes. The most pressing issue is that the approach previously suggested for handling dependencies in addons has changed.

This post has a bit of background of how Ember CLI and addons work followed by some details on how to migrate addons to the new Fastboot v1.0 structure.

How dependencies are manager for Ember projects (not addons)

TODO: basic package.json, bower.json, ember install and ember-cli-build.js/app.import

@elgordino
elgordino / README.md
Last active June 4, 2017 12:43
An ember service to manage emberfire relationships and record values atomically.

Intro

This ember service provides a way to make attomic changes to relationships and record values in Firebase. This is useful when you have relationships that are not simple parent/child relationships or need to updated fields across multiple records in an atomic transaction.

This code has been copied directly from my project and is intended to be used as an example rather than being cut/pasted directly into your project! :)

Important

Please note this code is untested and usage is at your own risk!

@cspanring
cspanring / python.rb
Created October 13, 2016 18:16
Python 2.7.10 homebrew formula
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org"
head "https://hg.python.org/cpython", :using => :hg, :branch => "2.7"
url "https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz"
sha256 "eda8ce6eec03e74991abb5384170e7c65fcd7522e409b8e83d7e6372add0f12a"
revision 2
bottle do
revision 3
@acdha
acdha / homebrew-gdal-ctypes.traceback
Created October 3, 2016 21:26
Traceback from a crash introduced by a recent Homebrew update when Python ctypes tries to load gdal
Traceback (most recent call last):
File "/Users/cadams/.virtualenvs/wdl/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
django.setup()
File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
@steven-ferguson
steven-ferguson / firebase-ui-auth.js
Created July 12, 2016 23:59
Emberfire + FirebaseUI Authentication
/* globals firebaseui */
import Ember from 'ember';
import firebase from 'firebase';
const { computed, inject: { service } } = Ember;
export default Ember.Component.extend({
firebaseApp: service(),
didInsertElement() {
@runspired
runspired / application.controller.js
Last active April 21, 2023 16:02
Component Blur Demo
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});