This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Enable UTF-8 encoding in gnome-terminal on Ubuntu. Without this, you may have | |
# to enable it in the menu bar per session. | |
gconftool --set --type=string /apps/gnome-terminal/profiles/Default/encoding en_UTF.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Get the difference between to git commit's total lines of code | |
# $1 a git commit | |
# $2 another git commit, after $1 chronologically | |
# Example: | |
# git line-diff HEAD HEAD~ | |
# git line-diff 1aab45 453b7a | |
# | |
# If you put this script on your path somewhere and name it git-line-diff, then | |
# git will run it when you type `git line-diff` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Potentially dangerous fix touchscreen after resume on the XPS 13 9350 | |
After=suspend.target | |
[Service] | |
Type=simple | |
ExecStart=/home/anthony/path/to/xps-touchscreen-workaround.sh | |
[Install] | |
WantedBy=suspend.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make the column size whatever you want. 230 seemed reasonable in my testing. | |
# On Ubuntu, you can get these dependnecies with `sudo apt-get install ruby-bcat colordiff` | |
git difftool -y -x "colordiff -y -W 230" $1 | bcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const St = imports.gi.St; | |
const Lang = imports.lang; | |
// UI specific components | |
const Main = imports.ui.main; | |
const PanelMenu = imports.ui.panelMenu; | |
const Indicator = new Lang.Class({ | |
Name: 'GnomeBitBarIndicator', // does this even matter? | |
Extends: PanelMenu.Button, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Uri, languages, Disposable, WorkspaceConfiguration, workspace } from 'vscode'; | |
const config = workspace.getConfiguration(); // empty to get your own plugin's configuration | |
const options = config.get("options"); | |
console.log(options); // ["option1", "option2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lumo | |
(ns hello.core | |
(:require [cljs.nodejs :as node] | |
[clojure.pprint :refer [pprint]] | |
[cljs.core :refer [*command-line-args*]])) | |
(pprint (str "Command line args: " *command-line-args*)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { div, DOMSource, h1, makeDOMDriver, VNode, input } from '@cycle/dom'; | |
import { run } from '@cycle/xstream-run'; | |
import xs, { Stream } from 'xstream'; | |
import SearchBox, { SearchBoxProps } from './SearchBox'; | |
export interface Sources { | |
DOM: DOMSource; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspace.dir := $(PWD) | |
workspace.node_modules := $(workspace.dir)/node_modules | |
typescript.src.dir := $(workspace.dir)/src | |
typescript.src.ts := $(shell find $(typescript.src.dir) -name '*.ts' -type f) | |
typescript.src.tsx := $(shell find $(typescript.src.dir) -name '*.tsx' -type f) | |
typescript.src.files := $(typescript.src.ts) $(typescript.src.tsx) | |
typescript.build.dir := $(workspace.dir)/artifacts | |
typescript.build.ts := $(patsubst $(typescript.src.dir)%.ts,$(typescript.build.dir)%.js, $(filter %.ts,$(typescript.src.files))) |
OlderNewer