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
use std::env; | |
use std::error::Error; | |
use std::fs; | |
pub struct Config { | |
pub query: String, | |
pub filename: String, | |
pub case_sensitive: bool, | |
} |
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 airline#extensions#quickfix#inactive_qf_window() | |
Called 208 times | |
Total time: 0.001837 | |
Self time: 0.001837 | |
count total (s) self (s) | |
208 0.001182 if getbufvar(a:2.bufnr, '&filetype') is# 'qf' && !empty(airline#util#getwinvar(a:2.winnr, 'quickfix_title', '')) | |
call setwinvar(a:2.winnr, 'airline_section_c', '[%{get(w:, "quickfix_title", "")}] %f %m') | |
endif |
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
FUNCTIONS SORTED ON TOTAL TIME | |
count total (s) self (s) function | |
2 0.631610 0.001374 phpcomplete#CompletePHP() | |
3 0.566376 0.015479 phpcomplete#GetCurrentNameSpace() | |
18 0.468668 phpcomplete#GetTaglist() | |
14 0.186341 0.002689 <SNR>81_Lint() | |
14 0.173856 0.001637 ale#engine#RunLinters() | |
28 0.170811 0.000730 <SNR>84_RunLinter() | |
29 0.154387 0.000958 <SNR>19_on_window_changed() | |
19 0.153387 0.000968 airline#update_statusline() |
This file has been truncated, but you can view the full file.
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
SCRIPT /Users/ethanknowlton/.vim/plugged/vim-leader-guide/syntax/leaderGuide.vim | |
Sourced 2 times | |
Total time: 0.000134 | |
Self time: 0.000134 | |
count total (s) self (s) | |
2 0.000012 if exists("b:current_syntax") | |
finish | |
endif | |
2 0.000004 let b:current_syntax = "leaderguide" |
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
# add to /etc/systemd/system/app.service | |
# manage app with 'systemctl' | |
[Unit] | |
Description=Puma HTTP Server | |
After=network.target | |
# Uncomment for socket activation (see below) | |
# Requires=puma.socket |
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
#!/usr/bin/env bash | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
path="$(dirname `pwd`)" | |
if [ -f ../puma.pid ]; then | |
kill -9 $(cat "../puma.pid") | |
rm -rf ../puma.pid |
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
package main | |
import ( | |
"bufio" | |
"encoding/csv" | |
"io" | |
"log" | |
"os" | |
"regexp" | |
"strings" |
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
<?php | |
/* | |
* | |
* This script manages webhooks from bitbucket. | |
* In order to automatically deploy updated source code | |
* without having to manually pull the repository. | |
* | |
* Bitbucket webhook will hit this script twice | |
* each time a commit is pushed to the repository. | |
* Once on production, and once on staging to |
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(){ | |
$("#myform").on('submit', function(e){ | |
var isValid = true; | |
if($('#input').val().length == 0){ | |
isValid = false; | |
} | |
if(!isValid){ | |
e.preventDefault(); |
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
#!/bin/bash | |
# hosts folder | |
HOSTSDIR=/Users/ethan/Sites | |
# DOMAIN to set up, ex: working.dev | |
DOMAIN=$1 | |
# User to set permissions for - the user account | |
USER=ethan |