This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd Filetype html setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype typescript setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype tsx setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype json setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype css setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype scss setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype sass setlocal ts=2 sts=2 sw=2 | |
set relativenumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import * as Oni from "oni-api"; | |
export const activate = (oni: Oni.Plugin.Api) => { | |
console.log("config activated"); | |
// Input | |
// | |
// Add input bindings here: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Web3 = require('web3'); | |
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
console.log( web3.eth.getBlock('latest') ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function debounce(fn, interval) { | |
var lastCall; | |
return function() { | |
var now = Date.now(); | |
if(!lastCall || now - lastCall > interval) { | |
fn.apply(this, arguments); | |
lastCall = now; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function throttle(func, wait, options) { | |
var context, args, result; | |
var timeout = null; | |
var previous = 0; | |
if (!options) options = {}; | |
var later = function() { | |
previous = options.leading === false ? 0 : Date.now(); | |
timeout = null; | |
result = func.apply(context, args); | |
if (!timeout) context = args = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
var scripts = [ | |
'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js', | |
'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.6.0/lodash.js' | |
]; | |
function drop(url) { | |
var s=document.createElement('script'); | |
s.setAttribute('src', url); | |
document.getElementsByTagName('body')[0].appendChild(s); | |
console.log('loaded', url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
var script = document.createElement('script'); | |
script.src = "https://s3-eu-west-1.amazonaws.com/aws-frontend-store/MATT/spacefinder-debug.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
require([ | |
'common/utils/$', | |
'common/utils/detect', | |
'common/modules/article/spacefinder', | |
'common/modules/commercial/article-body-adverts' | |
], function( | |
$, | |
detect, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat logfile.log | awk -F'" "' '{print $6}' | sort | uniq -c | sort -rbg | less |
NewerOlder