Skip to content

Instantly share code, notes, and snippets.

View mysliwietzflorian's full-sized avatar

Florian Mysliwietz mysliwietzflorian

  • Austria
View GitHub Profile
@Aerijo
Aerijo / making_language_grammar.md
Last active September 20, 2025 20:59
Guide to writing an Atom language grammar

A guide to writing a language grammar (TextMate) in Atom

Tree sitter

  • Atom is transitioning to an entirely new way of defining grammars using tree-sitter. This will be enabled by default quite soon now. It is theoretically faster and more powerful than regex based grammars (the one described in this guide), but requires a steeper learning curve. My understanding is that regex based grammars will still be supported however (at least until version 2), so this guide can still be useful. To enable it yourself, go to Settings -> Core and check Use Tree Sitter Parsers

Links for tree-sitter help:

@xphere
xphere / Configuration.php
Last active September 17, 2022 15:58
Recursive symfony/configuration
<?php
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Helper function to create recursive nodes
*/
function recursiveNode(string $name, callable $callback)
@atelic
atelic / gulpfile.js
Created May 24, 2015 04:00
Basic gulpfile for minify and concat css and javascript
/*
Before using make sure you have:
npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass
Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads
*/
var gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
concat = require('gulp-concat')
@arttuladhar
arttuladhar / git_brushup.md
Last active September 1, 2022 13:30
Basic GIT Commands for everyday use.

List of super userful Git Commands to use everyday.

Config / Setup

# Setting Global Username/Email
git config --global user.name "Aayush Tuladhar"'
git config --global user.email "[email protected]"'

# Clone a Repo from URL