Skip to content

Instantly share code, notes, and snippets.

.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {
@winstliu
winstliu / atom-packages-with-deprecated-require.md
Last active August 12, 2016 13:35
Atom packages that are using deprecated Electron requires.
  • amwiki
    • clipboard
  • apex-ui-personalize
    • remote
    • dialog
  • asciidoc-image-helper
    • clipboard
    • native-image
  • atml3-ide-prettifier
  • ipc
@MattMcFarland
MattMcFarland / styles.less
Created July 15, 2016 17:00
Ligature fonts for atom
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
@evanwill
evanwill / gitBash_windows.md
Last active September 14, 2025 10:43
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

anonymous
anonymous / m.js
Created April 17, 2016 22:35
..minus
(function (root, factory) {
if (typeof(define) === 'function' && define.amd) {
define([], function() { return root.m = factory() });
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root.m = factory();
}
})(this, function(exports){
'use strict';
@gaearon
gaearon / index.js
Last active January 21, 2025 08:07
Breaking out of Redux paradigm to isolate apps
import React, { Component } from 'react'
import Subapp from './subapp/Root'
class BigApp extends Component {
render() {
return (
<div>
<Subapp />
<Subapp />
<Subapp />
@mmozeiko
mmozeiko / incbin.c
Last active October 27, 2025 16:38
Include binary file with gcc/clang
#include <stdio.h>
#define STR2(x) #x
#define STR(x) STR2(x)
#ifdef _WIN32
#define INCBIN_SECTION ".rdata, \"dr\""
#else
#define INCBIN_SECTION ".rodata"
#endif
@richy486
richy486 / astar.p8
Last active June 11, 2025 11:34
A* pathfinding in pico-8
pico-8 cartridge // http://www.pico-8.com
version 5
__lua__
-- A* pathfinding
-- by @richy486
function _init()
printh("---------------")
printh("starting a star")
@gregz67
gregz67 / skittles.js
Created November 12, 2015 18:00
HackerRank quiz
/**
We need to deliver a package of Skittles bags. You will be given an inventory of small bags (1 kilo each) and big bags
(5 kilos each) along with the goal amount of kilos we need to ship the customer. Return the amount of small bags the package
will contain assuming we always use big bags first. Return -1 if it cannot be done.
Input
small (type: int) - The number of small bags we have to work with
big (type: int) - The number of big bags we have to work with
goal (type: int) - The goal weight of the package that we need to ship out
@facelordgists
facelordgists / CopyConsole
Last active December 20, 2016 17:24
Setup Barracuda Copy Console on Ubuntu 14.04 & ServerPilot
#!/bin/sh
# CopyConsole (Copy cloud storage by Barracuda) service
copyConsolePath="/srv/users/serverpilot/scripts/copy/CopyConsole"
copyUser="serverpilot"
userHomeDir="/srv/users/serverpilot"
start() {
echo "Starting CopyConsole..."
if [ -x $copyConsolePath ]; then