Skip to content

Instantly share code, notes, and snippets.

:octocat:
Slappin' on keyboard

Davy Lgofk

:octocat:
Slappin' on keyboard
  • Ukraine
Block or report user

Report or block Lgofk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Lgofk
Lgofk / _spacing-helpers.scss
Created Oct 15, 2019 — forked from jacurtis/_spacing-helpers.scss
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
View _spacing-helpers.scss
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@Lgofk
Lgofk / colors.xml
Created Oct 5, 2017 — forked from kalehv/colors.xml
Material Design Color Palette Colors.xml Resource file for Android
View colors.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml
Harshad Kale
https://github.com/kalehv
-->
@Lgofk
Lgofk / .ts
Last active Sep 19, 2017 — forked from MiguelLattuada/.ts
Adding parameters to HTTP get request on Anuglar 2
View .ts
public getForecast(days: number) {
// Parameters obj-
let params: URLSearchParams = new URLSearchParams();
params.set('appid', StaticSettings.API_KEY);
params.set('cnt', days.toString());
//Http request-
return this.http.get(StaticSettings.BASE_URL, {
search: params
}).subscribe(
@Lgofk
Lgofk / dev-tools-lodash.js
Created Feb 23, 2017
Using lodash within dev tools.
View dev-tools-lodash.js
var el = document.createElement('script');
el.src = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el);
@Lgofk
Lgofk / gist:2fcf212086b1f451c05240fd0f157d47
Created Feb 22, 2017
Date in format: "mm/dd/yyy h:min"
View gist:2fcf212086b1f451c05240fd0f157d47
var startTime = new Date();
startTime = startTime.getMonth() + 1 + '/' + startTime.getDate() + '/' + startTime.getFullYear() + ' ' + startTime.getHours() + ':' + startTime.getMinutes();
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View gulpfile.js
var gulp = require('gulp'),
ts = require('gulp-typescript');
gulp.task('typescript', function () {
return gulp.src('ts/**/*.ts')
.pipe(ts({
noImplicitAny: true
}))
.pipe(gulp.dest('js'));
});
You can’t perform that action at this time.