Skip to content

Instantly share code, notes, and snippets.

View pcbulai's full-sized avatar
👨‍💻
Coding

Paul Bulai pcbulai

👨‍💻
Coding
  • Romania
  • 07:29 (UTC +03:00)
View GitHub Profile
@pcbulai
pcbulai / csscomb.conf
Created May 19, 2015 09:24
csscomb.conf
{
// If plugin has trouble finding Node.js, replace this string with path
// to your `node` bin
"node-path" : ":/usr/local/bin",
// Full list of supported options and acceptable values can be found here:
// https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
"config": {
// Whether to add a semicolon after the last value/mixin.
@pcbulai
pcbulai / objSize.js
Created April 22, 2015 13:32
Get JS object size
function objectSize (obj) {
var key,
size = 0;
for (key in obj) {
if (obj.hasOwnProperty(key)) {
size++;
}
}
return size;
}
/**
* The default JSHint output is somewhat wasteful, and very bland, making it hard for a human to
* parse. The following does IMO a better job and colours the output for you. This requires the
* `colors` package, available via npm. If you don't want the dependency, just remove the color
* commands from strings.
*
* Usage: When invoking jshint from the command line, point it to this file with the --reporter
* flag. e.g.
*
* jshint someFile.js --config /path/to/config.cfg --reporter /path/to/jshintReporter.js
@pcbulai
pcbulai / sublime-text.sh
Created October 17, 2013 13:01
Sublime Text 3 installer on Fedora 19
## Install Sublime Text 3 on Fedora 19 ##
# Download Sublime Text 3 from http://www.sublimetext.com/3 . Make sure you download it as a tar.bz and that it has the right architecture
# Place this script in the same folder as your archive for ease of use, and cd there
# run this file with sudo chmod +x sublime-text.sh
#!/bin/sh
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
@pcbulai
pcbulai / .bashrc
Last active November 11, 2021 09:44
.bashrc file with some useful aliases and functions
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
### autocorrects cd misspellings, 'cd /sur/src/linus' >> 'cd /usr/src/linux' ###