Skip to content

Instantly share code, notes, and snippets.

View chmanie's full-sized avatar
🦦

Christian Maniewski chmanie

🦦
View GitHub Profile
@chmanie
chmanie / nvgist.js
Last active June 18, 2018 07:39
backup your nvAlt file to github as gists
// backup your nvAlt file to github as gists
// uses openmeta (https://code.google.com/p/openmeta/)
'use strict';
var ChildProcess = require('child_process');
var gaze = require('gaze');
var GitHubApi = require('github');
var fs = require('fs');
var _ = require('lodash');
function mergeDate(date, time) {
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
}
gulp.task('less_local', function () {
gulp.src(SRC_DIR + '/app/**/*.less')
.pipe(concat('bundle.less'))
.pipe(less({
paths: LESS_PATHS
}))
.on('error', notify.onError(function (error) {
return 'Error(s) in less files: ' + error.message;
}))
.pipe(gulp.dest(DIST_LOCAL_DIR + '/css'));
@chmanie
chmanie / vim_plugins.md
Last active August 29, 2015 14:05
Collection of great vim plugins
@chmanie
chmanie / .vimrc
Created September 2, 2014 07:31
My .vimrc
" pathogen
execute pathogen#infect()
" syntax highlighting
syntax on
filetype plugin indent on
" font settings
set guifont=Source\ Code\ Pro\ for\ Powerline:h16
" line numbers
set number
" colorscheme
Info: Loading facts
Info: Loading facts
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for openshift in environment production in 3.65 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default')
Info: Applying configuration version '1410105816'
Notice: /Stage[first]/Openshift_origin::Yum_install_method/Package[yum-plugin-priorities]/ensure: created
Notice: /Stage[first]/Openshift_origin::Yum_install_method/Yumrepo[openshift-origin]/ensure: created
Info: changing mode of /etc/yum.repos.d/openshift-origin.repo from 600 to 644
Global Gear Settings
+-------------------------+----------------------+
| Valid Gear Sizes | small, medium, large |
| User Default Gear Sizes | small, medium |
| Default Gear Size | small |
+-------------------------+----------------------+
Account Settings
+----------------------------+------------------------+
| OpenShift Console User | demo |
@chmanie
chmanie / gist:a24ee561fed415a0fd87
Created September 8, 2014 09:00
CSS rules for the last child and the next-to-last child but only when total child number is even
.my-class:last-child {
// stuff
}
.my-class:nth-last-child(2):nth-child(odd) {
// same stuff as above
}
@chmanie
chmanie / angular.iife.sublime-snippet
Created September 29, 2014 10:40
Sublime Text Snippet for new angular module function
<snippet>
<content><![CDATA[
(function(angular, undefined) {
'use strict';
function ${1:Module} () {
${5:// body}
}
@chmanie
chmanie / fastmail_userscript.js
Last active August 29, 2015 14:14
Userscript for using FastMail in Fluid.app with proper dock badges and (!) Message Center notifications with preview
/* Options */
// set dock badge refresh interval here
var refreshInterval = 10*1000; // 10 seconds
// on some systems or networks the site takes a long time to load. specify this time here
var firstTimeout = 3*1000; // 3 seconds work fine for me
var count = 0;
window.fluid.dockBadge = '';