Skip to content

Instantly share code, notes, and snippets.

View arakno's full-sized avatar

Paulo arakno

View GitHub Profile
@arakno
arakno / elementaryos.md
Created August 31, 2024 21:27 — forked from thejoker8814/elementaryos.md
elementaryOS | Things To Do After Installing elementary OS Jólnir (6.1)

First Things First

  • Enable PPA

     sudo apt update
     sudo apt install software-properties-common apt-transport-https curl
  • Install apt-fast

@arakno
arakno / elementaryos.md
Created August 31, 2024 21:26 — forked from thejoker8814/elementaryos.md
elementaryOS | Things To Do After Installing elementary OS Jólnir (6.1)

First Things First

  • Enable PPA

     sudo apt update
     sudo apt install software-properties-common apt-transport-https curl
  • Install apt-fast

@arakno
arakno / perfectelementary.bash
Created April 28, 2020 22:47 — forked from maxjerin/perfectelementary.bash
Things to install on a fresh installation of ElementaryOS
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
#Install gedit (Text Editor)
@arakno
arakno / obj-linking.js
Created January 15, 2020 20:55
JS object linking through prototype chains
var Person = {
first: undefined,
last: undefined,
personMethod: function personMethod() {
console.log( this.first, this.last);
}
};
var Employee = Object.create(Person);
Employee.position = undefined;
@arakno
arakno / jqueryElementExistsPromise.js
Created October 14, 2019 09:58
check if element is present on DOM (jquery)
// https://gist.github.com/chrisjhoughton/7890303
$('.something').promise().done((self) => { console.log(self); });
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;( function( $, window, document, undefined ) {
"use strict";
// undefined is used here as the undefined global variable in ECMAScript 3 is
// mutable (ie. it can be changed by someone else). undefined isn't really being
// passed in so we can ensure the value of it is truly undefined. In ES5, undefined
// can no longer be modified.
@arakno
arakno / .gitignore
Last active November 7, 2019 11:43
node_modules
bower_components
.DS_Store
.idea
bundle.*
npm-debug.log
debug.log
build
main.js
.tmp
@arakno
arakno / Object.watch.js
Last active September 13, 2018 20:31
Object watch polyfill
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+f5",
"command": "workbench.action.reloadWindow",
"when": "editorTextFocus"
},
{
"key": "ctrl+a",
"command": "editor.action.selectAll",
@arakno
arakno / detect iOS
Created March 21, 2016 10:29
detect iOS
instance.detectiOS = function () {
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
};