Skip to content

Instantly share code, notes, and snippets.

View gist:339dcb9b033aac30d6961d259946b9b2
# .hushlogin
# .inputrc
"\e\e[C": forward-word
"\e\e[D": backward-word
# .bashrc
ulimit -n 2048 # /Library/LaunchDaemons/limit.maxfiles.plist
@Mouvedia
Mouvedia / manifest.json
Created Apr 4, 2018
manifest mandatory properties
View manifest.json
{
"name": "",
"description": "",
"background_color": "#",
"icons": [{
"src": ".png",
"sizes": "512x512",
"type": "image/png"
}]
}
@Mouvedia
Mouvedia / rules
Last active Jun 29, 2019
karabiner
View rules
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 400,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
View angular.js
try {
angular.bootstrap(document.body, ['moduleName']);
} catch(e) {
angular.element(document.body).injector().invoke(function($compile) {
var scope = angular.element(element).scope();
$compile(element)(scope);
scope.$apply();
});
}
View css
-khtml-border-radius: px;
-moz-border-radius: px;
-webkit-border-radius: px;
border-radius: px;
background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,1)), color-stop(100%,rgba(0,0,0,0)));
background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
background: -o-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
View XHR \ XDR
https://github.com/Mouvedia/cb-fetch
// xhr.onabort
// xhr.onerror
// xhr.ontimeout
// XMLHttpRequest({mozAnon: true});
// if (typeof obj.then === "function")
mode
"cors"
View String.js
//https://github.com/Mouvedia/isString
String.parseAsClass = function(className, HTML5) {
if (!String.isString(className))
throw new TypeError('The passed argument must be a string.');
if (className === '')
throw new SyntaxError('The string provided must not be empty.');
if (!HTML5) {
className = className.replace(/^[ \t\n\f\r\u200b]+|[ \t\n\f\r\u200b]+$/g, '');
View user.keymap
[
[:app "cmd-alt-right" :tabset.next]
[:app "cmd-alt-left" :tabset.prev]
[:app "ctrl-shift-right" :tabs.next]
[:app "ctrl-shift-left" :tabs.prev]
[:app "alt-w" :workspace.show]
[:app "alt-f" :searcher.show]
[:app "alt-space" :navigate-workspace-transient]
[:app "pmeta-b" :add-browser-tab]
View user.behavior.cljs
[
[:app :-lt.objs.intro/show-intro]
[:app :lt.objs.style/set-skin "dark"]
[:app :lt.objs.sidebar.workspace/workspace.open-on-start]
[:app :lt.objs.app/run-post-init [:window.maximize]]
[:app :lt.plugins.gitlight/config {:git-binary "git" :max-history 64}]
[:tabset.tab :lt.plugins.user/push-active-tab]
[:tabs-extended :lt.plugins.user/last-tab]
View ie-css-hacks.css
/*
* Property prefix hacks
*/
/* IE6 only - any combination of these characters */
_ - £ ¬ ¦
/* IE6/7 only - any combination of these characters */