You can force syntax highlighting on files in Atom by using customFileTypes in config.cson
"*":
core:
customFileTypes:
"source.json": [
".eslintrc"
".babelrc"
]
// adapted from https://tonicdev.com/n3dst4/twelve-days-of-emoji | |
// full credit to n3dst4. I just rewrote this to be browser developer tools friendly. | |
const pressies = [ | |
"🐦🍐🌳", | |
"🐢🐦", | |
"🇫🇷🐔", | |
"📞🐦", | |
"💛💍", | |
"🐦🍳 ", | |
"🐦🏊", |
You can force syntax highlighting on files in Atom by using customFileTypes in config.cson
"*":
core:
customFileTypes:
"source.json": [
".eslintrc"
".babelrc"
]
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
import { create } from './websocket-ha'; | |
const homeAssistant = create('http://localhost:8123'); | |
homeAssistant.connect(); | |
await homeAssistant.auth("my secret password"); | |
// Make API calls | |
console.log(await homeAssistant.call({type: 'get_config'})); |
const useScrollIntoView = (condition: boolean) => { | |
const ref = React.useRef<HTMLDivElement | null>(null); | |
React.useEffect(() => { | |
if (condition && ref.current) { | |
ref.current.scrollIntoView({ | |
behavior: 'smooth', | |
block: 'center', | |
inline: 'center', | |
}); | |
} |
// http://viljamis.com/blog/2013/prototyping-responsive-typography/?utm_source=Responsive+Design+Weekly&utm_campaign=76e7785581-Responsive_Design_Weekly_046&utm_medium=email | |
$browser-context: 16; // Default | |
@function em($pixels, $context: $browser-context) { | |
@return #{$pixels/$context}em | |
} |
This is installation documentation for installing Koel on Debian 8.
Most packages can be installed via apt-get.
user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl
// by d whyte | |
int[][] result; | |
float t; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |
I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)
This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.
Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –