Skip to content

Instantly share code, notes, and snippets.

View adnasa's full-sized avatar
💐

Adnan Asani adnasa

💐
View GitHub Profile
@adnasa
adnasa / _btn.css
Created February 4, 2016 21:46
Overhaul suggestion 1: Adding a specific class that defines that block's state itself
.btn,
.btn--primary,
.btn--secondary,
.btn--inverted {
outline: none;
border: none;
padding: 5px 10px;
letter-spacing: 1px;
text-transform: uppercase;
}
@adnasa
adnasa / _btn.css
Last active February 4, 2016 21:44
Overhaul suggestion 2: .btn class to set a base for button. adding an additional class to change its state.
.btn {
outline: none;
border: none;
padding: 5px 10px;
letter-spacing: 1px;
text-transform: uppercase;
}
.btn.btn--primary {
color: #333333;
Setting an external node module in your project with the hassle
// in random folder (NOT INSIDE THE PROJECT)
$ git clone tracking.js
$ cd tracking.js
$ sudo npm link
// in your project
$ cd maximalg/node_modules
$ npm install tracking.js
~/workspace/training/magnolia/setup1/magnolia-5.4.3 ᐅ ./apache-tomcat-7.0.64/bin/magnolia_control.sh start
[ERROR]: #######################################################################################################################
[ERROR]: The max open files limit allowed by your system may be too low.
[ERROR]: See https://documentation.magnolia-cms.com/display/DOCS/Known+issues#Knownissues-Toomanyopenfiles for more information.
[ERROR]: If you want to suppress this check, use --ignore-open-files-limit flag.
[ERROR]: #######################################################################################################################
@adnasa
adnasa / gist:6949658
Created October 12, 2013 12:45
Drupal 7 update password
drush upwd admin --password=drupal
@adnasa
adnasa / gist:6411938
Last active December 22, 2015 03:39
Git alias, baby!
[alias]
d = "diff --unified=10"
sh = "show --unified=10"
st = "status"
co = "checkout"
m = "merge"
ls = "log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short"
standup = "log --since '1 day ago' --oneline --author <adnan@netconsult.se>"
br = "branch"
bra = "branch -a"
@adnasa
adnasa / gist:444a4f1ea3868c514cf7
Created November 4, 2015 18:42 — forked from gjjones/gist:14ff3f528b3253b59525
storing gruntifle using browsersync and browserify for react(jsx)
var browserSync = require('browser-sync');
module.exports = function (grunt) {
grunt.initConfig({
watch: {
options: {
spawn: false
},
compiled: {
files: ['app/build/bundle.js'],
module.exports = function (grunt) {
grunt.initConfig({
browserify: {
dist: {
options: {
transform: [
["babelify", {
loose: "all",
stage: 0
}],
@adnasa
adnasa / .editorconfig
Last active September 11, 2015 07:33
.editorconfig suggestion for sphere-sunrise project (open to feedback)
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true