Skip to content

Instantly share code, notes, and snippets.

View mannuelf's full-sized avatar
👾

Mannuel Ferreira mannuelf

👾
View GitHub Profile
@mannuelf
mannuelf / keychron_linux.md
Created September 11, 2022 07:47 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@mannuelf
mannuelf / index.html
Created April 20, 2016 12:11 — forked from anonymous/index.html
Move up the chain with end() Moving up the chain with end() // source https://jsbin.com/tenoxaz
<!DOCTYPE html>
<html>
<head>
<title>Move up the chain with end()</title>
<meta name="description" content="Moving up the chain with end()">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@mannuelf
mannuelf / index.html
Created April 21, 2016 06:54 — forked from anonymous/index.html
Basic Plugin Pattern Return Value return this; return this.each(); return.this.pushStack(); to maintain chainability // source http://jsbin.com/sacoba
<!DOCTYPE html>
<html>
<head>
<title>Basic Plugin Pattern Return Value</title>
<meta name="description" content="return this; return this.each(); return.this.pushStack(); to maintain chainability">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@mannuelf
mannuelf / index.html
Created April 21, 2016 09:46 — forked from anonymous/index.html
Return a singe value return a single value // source http://jsbin.com/bamefo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="return a single value ">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Return a singe value</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 22, 2016 10:03 — forked from anonymous/index.html
PushStack demo jQuery pushStack() demo // source http://jsbin.com/wicama
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="jQuery pushStack() demo">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>PushStack demo</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 22, 2016 14:10 — forked from anonymous/index.html
Extend Demo // source http://jsbin.com/solige
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Extend Demo</title>
</head>
<body>
<h1>Extend Demo</h1>
@mannuelf
mannuelf / index.html
Created April 22, 2016 11:29 — forked from anonymous/index.html
ParseJSON demo ParseJSON Function, turns JSON into javasctipt objects // source http://jsbin.com/ragupa
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta name="description" content="ParseJSON Function, turns JSON into javasctipt objects">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>ParseJSON demo</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 22, 2016 15:03 — forked from anonymous/index.html
Proxy demo $.proxy event handlers demo // source http://jsbin.com/zomipo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="$.proxy event handlers demo">
<script src="https://code.jquery.com/jquery-3.0.0-alpha1.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Proxy demo</title>
</head>
<body>
@mannuelf
mannuelf / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mannuelf
mannuelf / javascript_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage