Skip to content

Instantly share code, notes, and snippets.

View FabHof's full-sized avatar
⛰️

Fabian Schmalzried FabHof

⛰️
  • Stuttgart, Germany
View GitHub Profile
@FabHof
FabHof / settings.json
Created September 25, 2022 15:51
Vscode settings for Nix Environment Selector and integratd terminal
{
"nixEnvSelector.suggestion": false,
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix",
"terminal.integrated.profiles.linux": {
"Nix Shell": {
"path": "nix-shell",
"icon": "terminal-linux",
"color": "terminal.ansiCyan" // give it some color as a reminder this is nix
},
},
@FabHof
FabHof / adapters.album.js
Last active April 9, 2019 16:24 — forked from cah-brian-gantzler/adapters.album.js
demo ember-models-table async filter/sort
import DS from "ember-data";
export default DS.RESTAdapter.extend({
//namespace: 'api',
host: 'https://jsonplaceholder.typicode.com',
//coalesceFindRequests: true
handleResponse: function handleResponse(status, headers, payload, requestData) {
let result = this._super(...arguments);
result = {album: result}
return result;
@FabHof
FabHof / components.my-component.js
Last active December 20, 2018 21:37
re-render hooks
import Ember from 'ember';
export default Ember.Component.extend({
updateCount: 0,
didUpdateAttrs() {
this._super(...arguments)
console.log("didUpdateAttrs", this.updateCount)
this.updateCount++;
}
});