Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active November 18, 2024 15:17
Online Resources For Web Developers (No Downloading)
@devotox
devotox / README.md
Last active June 5, 2021 06:36
Ember Engines With Ember Simple Auth

Using Ember Simple Auth with Ember Engines (In Repo Engine)

  • This shows the steps needed to get Ember Simple Auth to work with Ember Engines as if they are the same application

  • Things to note

    • engine login page needs to transitionToExternal('login')
    • login has to be passed in as an external route to the engine
    • session and cookie services both need to be passed into engine
    • sessionAuthenticated function needs to be overwritten in the Application Controller of the Engine
  • in /app/app.js add to const engines object { [Engine Name]: dependencies }

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active November 3, 2024 17:14
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@nickoala
nickoala / 0_python_email.md
Last active October 16, 2024 18:32
Use Python to send and receive emails

Use Python to:

  • send a plain text email
  • send an email with attachment
  • receive and filter emails according to some criteria
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'section',
classNames: [ 'i18n-demo' ],
i18n: Ember.inject.service(),
beenClicked: false,
text: Ember.computed('i18n.locale', function()
{
@johnkpaul
johnkpaul / component-list.md
Last active December 24, 2015 12:19
Ember.Component list
Ember.LOG_BINDINGS = true;
var App = window.App = Ember.Application.create({
LOG_STACKTRACE_ON_DEPRECATION : true,
LOG_TRANSITIONS : true,
LOG_TRANSITIONS_INTERNAL : true,
LOG_VIEW_LOOKUPS : true,
LOG_ACTIVE_GENERATION : true
});
@sebastianseilund
sebastianseilund / merged_array.js
Last active December 20, 2015 07:58
An implementation of a merged array in Ember.js that combines items from multiple source arrays so you can easily list them together in your Handlebars templates. Read the blog post at the [Billy's Billing Developer Blog](http://dev.billysbilling.com/blog/How-to-merge-multiple-data-sources-into-one-array-in-Ember-js)
/**
* `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes
* all items from all source arrays in an efficient way.
*
* Usage:
*
* ```javascript
* var obj = Ember.Object.create({
* people: [
* {
@mplewis
mplewis / flask-uwsgi-nginx-primer.md
Last active September 23, 2024 11:09
Flask + uWSGI + nginx Primer. I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

Flask + uWSGI + nginx Primer

I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

How this shit works

  • Flask is managed by uWSGI.
  • uWSGI talks to nginx.