Skip to content

Instantly share code, notes, and snippets.

View villander's full-sized avatar

Michael Villander villander

View GitHub Profile
@villander
villander / application.controller\.js
Last active June 25, 2021 15:48 — forked from cdeeter/application.controller\.js
Peek Frontend Coding Challenge
import Controller from '@ember/controller';
export default Controller.extend({
dates: ['2021-06-04'], // '2021-06-05', '2021-06-06']
});
>>>>>>>>>>>>>>>>>>>>>>>
Teaching an IDE to understand Rust
>>>>>>>>>>>>>>>>>>>>>>>
Abstract
(A concise, engaging description for the public program. Limited to 600 characters.)
IDE support is one of Rust's most requested features. From the 2017 State of Rust Survey:
roughly 30% of Rust users are looking forward to IDE support more than any other feature in 2017 and for 22% of
non-users, lack of IDE support is their main reason for not using Rust. Thankfully, the Rust Language Server is here now and it gets smarter and
more capable every day.
>>>>>>>>>>>>>>>>>>>>>>>
Teaching an IDE to understand Rust
>>>>>>>>>>>>>>>>>>>>>>>
Abstract
(A concise, engaging description for the public program. Limited to 600 characters.)
IDE support is one of Rust's most requested features. From the 2017 State of Rust Survey:
roughly 30% of Rust users are looking forward to IDE support more than any other feature in 2017 and for 22% of
non-users, lack of IDE support is their main reason for not using Rust. Thankfully, the Rust Language Server is here now and it gets smarter and
more capable every day.
@villander
villander / ember-engines-documentation.md
Created April 4, 2019 03:36 — forked from dgeb/ember-engines-documentation.md
Ember Engines Documentation ToDos

Ember Engines Documentation ToDos

General

  • Almost all docs from README should be moved to ember-engines.com. Having similar but different info in both places is confusing and unmaintainable.

  • Consider using https://github.com/ember-learn/ember-cli-addon-docs to standardize the docs and guides and to make them version-specific.

  • Clarify the philosophy and intended uses for engines.

  • Is the "Why Use Engines?" section on http://ember-engines.com/ sufficient?

@villander
villander / launch.json
Created December 27, 2018 13:34 — forked from lifeart/launch.json
VS Code Ember-cli debug
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
@villander
villander / quote.txt
Created June 14, 2018 13:06 — forked from OnesimusUnbound/quote.txt
Programming Quotes
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
@villander
villander / easing.js
Created May 10, 2018 13:53 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@villander
villander / ember-cli-build.js
Created February 23, 2018 15:32 — forked from lifeart/ember-cli-build.js
Ember-cli-es6-imports
// install ember-cli-es6-transform
function importFromNPM(app,moduleName) {
let relPath = `node_modules/${moduleName}`;
let nodePath = `./${relPath}`;
let config = require(`${nodePath}/package.json`);
if (config.style) {
app.import(`${relPath}/${config.style}`);
}
import Ember from 'ember';
const { run: { debounce } } = Ember;
export default Ember.Controller.extend({
appName:'Ember Twiddle',
runMe() {
console.log("I should be called once");
},
@villander
villander / 0 README.md
Created November 10, 2017 11:58 — forked from caseywatts/0 README.md
async/await in ember tests