Skip to content

Instantly share code, notes, and snippets.

View mavisland's full-sized avatar
🤯
overthinking kills your happiness

Tanju Yıldız mavisland

🤯
overthinking kills your happiness
View GitHub Profile
@mavisland
mavisland / setup-franz-ubuntu.sh
Created September 16, 2017 22:28 — forked from ruebenramirez/setup-franz-ubuntu.sh
setup franz on ubuntu
#!/bin/bash
sudo rm -fr /opt/franz
sudo rm -fr /usr/share/applications/franz.desktop
# create installation dir
sudo mkdir -p /opt/franz
#install franz
@mavisland
mavisland / output.txt
Last active June 8, 2017 05:48 — forked from james2doyle/slugify.php
Simple slugify function for PHP. Creates a slug for the passed string, taking into account international characters as well.
messd-up-text-just-to-stress-test-our-little-clean-url-function
pijamali-hasta-yagiz-sofore-cabucak-guvendi-saf-ve-haydut-kiz-cocugu-bin-plaj-gormus
peux-tu-maider-sil-te-plait
tank-efter-nu-forrn-vi-foser-dig-bort
aaaaaaaeceeeeiiiidnooooouuuuyssaaaaaaaeceeeeiiiidnooooouuuuyy
@mavisland
mavisland / first-things.sh
Created May 28, 2017 16:12 — forked from vaibhavmule/first-things.sh
First Thing To Do After Installing Any Linux OS.
echo "Updating" &&
sudo apt-get update
echo "Upgrading" &&
sudo apt-get dist-upgrade
echo "Cleaning Up" &&
sudo apt-get -f install &&
sudo apt-get autoremove &&
sudo apt-get -y autoclean &&
@mavisland
mavisland / organize-your-css-properties.css
Created April 7, 2017 12:18
Organize your CSS properties however you dang like
.class {
/* GENERAL */
display: #;
content: ”;
/* SIZING */
width: #;
min-width: #;
max-width: #;
height: #;
@mavisland
mavisland / media_link_widget.js
Last active January 17, 2017 13:05
media_link_widget
@mavisland
mavisland / Markdown.sublime-settings
Created September 8, 2015 15:59
Sublime Text 3 Workflow
{
"color_scheme": "Packages/Predawn/predawn-markdown.tmTheme",
"draw_centered": true, // Centers the column in the window
"draw_indent_guides": false,
"font_size": 15,
"trim_trailing_white_space_on_save": false,
"word_wrap": true,
"wrap_width": 80 // Sets the # of characters per line
}
jQuery(document).ready(function ($) {
function stickymenu() {
if($("body").hasClass("boxed"))
return false;
var headerHeight = $("body > header").height();
var logo = $("header .logo img");
var $this = this;
var logoSmallHeight = 50;
@mavisland
mavisland / solution
Created March 1, 2015 15:48
Cannot install NodeJs: /usr/bin/env: node: No such file or directory
ln -s /usr/bin/nodejs /usr/bin/node
@mavisland
mavisland / font-face-mixin.less
Created February 17, 2015 14:09
Web font loading mixin for LESS
// Load web-font
.load-font(@family: Arial, @name: "font", @path: "../fonts/", @weight: normal, @style: normal) {
@font-face {
font-family: '@{family}';
src: url('@{path}@{name}.eot');
src: url('@{path}@{name}.eot?#iefix') format('embedded-opentype'),
url('@{path}@{name}.woff2') format('woff2'),
url('@{path}@{name}.woff') format('woff'),
url('@{path}@{name}.ttf') format('truetype'),
url('@{path}@{name}.svg#@{family}') format('svg');
// Place your settings in the file "User/Preferences.sublime-settings", which
// overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform