Skip to content

Instantly share code, notes, and snippets.

Anders Evenrud andersevenrud

Block or report user

Report or block andersevenrud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active Jul 7, 2019
True Color and Italics w/alacritty + tmux + vim
View alacritty-tmux-vim_truecolor.md

This should make true-color and italics work in your tmux session.

Tested successfully in bash and zsh with latest packages from Arch (with exception of Neovim from Git) 20019-07-07.

Notes

  1. Don't use &t_8f and &t_8b in your vim config
  2. Don't set $TERM in your zshrc, bashrc, etc. Let your terminal set this. So far xterm-256color has worked best for me.

Testing colors

@andersevenrud
andersevenrud / index.js
Last active Apr 1, 2019
Simple OS.js Application w/Server API
View index.js
//
// Just a standard OS.js application
//
// The "index.js" file.
//
import osjs from 'osjs';
import {name as applicationName} from './metadata.json';
const register = (core, args, options, metadata) => {
const proc = core.make('osjs/application', {args, options, metadata});
View index.js
import './index.scss';
import osjs from 'osjs';
import {name as applicationName} from './metadata.json';
import {h, app} from 'hyperapp';
import {Box, BoxContainer, Button, Toolbar, TextField, SelectField} from '@osjs/gui';
///////////////////////////////////////////////////////
// Custom GUI Elements
///////////////////////////////////////////////////////
@andersevenrud
andersevenrud / README.md
Created Feb 2, 2019
Adding custom icon to OS.js v3 package
View README.md

In your package

  1. Install webpack plugin to copy files npm install copy-webpack-plugin
  2. Place your icon.png in the directory
  3. Update webpack config -- see file below
  4. Update package metadata --- see file below
  5. Run npm run build

In your installation

View index.js
/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2019, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
@andersevenrud
andersevenrud / index.js
Last active Jan 21, 2019
OS.js v3 - Basic Iframe Example
View index.js
import './index.scss';
import osjs from 'osjs';
import {name as applicationName} from './metadata.json';
// Our launcher
const register = (core, args, options, metadata) => {
// Create a new Application instance
const proc = core.make('osjs/application', {args, options, metadata});
// Create a new Window instance
@andersevenrud
andersevenrud / TODO.md
Last active Jan 5, 2019
OS.js v3 TODO list
View TODO.md

OS.js v3 has been released

This is the "general" list of tasks for OS.js v3 development. I'm just adding things here as I go or things pop into mind. So if you see anything interesting and you want to pitch in, that'd be much appreciated.

See the following repositories for issues/todos that are not included here:

View index.js
import React from 'react';
import ReactDOM from 'react-dom';
//
// Your component(s).
//
class MainWindowComponent extends React.Component {
constructor(props) {
super(props);
@andersevenrud
andersevenrud / index.js
Created Jun 20, 2018
OS.js v3 w/React and bi-directional events via bus
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
//
// Your component(s).
//
class MainWindowComponent extends React.Component {
constructor(props) {
super(props);
You can’t perform that action at this time.