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
alias "+jt" "+jump;"; | |
alias "+ta" "-attack; -attack2"; | |
alias "-jt" "-jump"; | |
bind "MOUSE5" "+jt;+ta;"; | |
alias +knife slot3; | |
alias -knife lastinv; | |
alias +netg "cl_showfps 2; | |
cq_netgraph 1;+showscores"; | |
alias -netg "cl_showfps 0;cq_netgraph 0;-showscores";bind TAB "+netg"; |
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
public class FullTextUtils | |
{ | |
static HashSet<string> StopWords { get; set; } | |
static FullTextUtils() //static constructor. init stopwords | |
{ | |
try | |
{ | |
using (var cn = DBUtils.GetNewOpenConnection()) | |
{ |
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
// An autoresize directive that works with ion-textarea in Ionic 2 | |
// Usage example: <ion-textarea autoresize [(ngModel)]="body"></ion-textarea> | |
// Based on https://www.npmjs.com/package/angular2-autosize | |
import { Directive, HostListener, ElementRef } from "@angular/core"; | |
@Directive({ | |
selector: "ion-textarea[autoresize]" // Attribute selector | |
}) | |
export class Autoresize { |
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
#Quick way to commit and push for Mercurial. Put it into your .zshrc | |
#No need to write -m and to put a commit message into quotes | |
#Example usage: hgcp commit message | |
hgcp() {hg commit -m "$*"; hg push} |
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
::-moz-selection { background: #4DA400; color: #fff; text-shadow: none; } | |
::selection { background: #4DA400; color: #fff; text-shadow: none; } |
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
history | awk '{print $2}' | sort | uniq -c | sort -rn | head -10 |