This file contains hidden or 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
" Install https://github.com/junegunn/vim-plug first | |
call plug#begin() | |
" On-demand loading | |
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'preservim/nerdcommenter' | |
Plug 'powerline/powerline' | |
Plug 'mattn/emmet-vim' | |
" Plug 'chreekat/vim-paren-crosshairs' | |
Plug 'vim-perl/vim-perl' | |
Plug 'dense-analysis/ale' |
This file contains hidden or 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 ( | |
"fmt" | |
"net/http" | |
"io/ioutil" | |
) | |
func main() { | |
resp, err := http.Get("http://maximus.htbaa.com/module/sources/json") |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: Maximus | |
# Required-Start: $syslog $network | |
# Required-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Maximus script | |
# Description: Maximus script |
This file contains hidden or 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 Foo; | |
use Validation::Class; | |
directive 'is_troll' => sub { | |
my ($dir, $value, $field, $self) = @_; | |
foreach (@{$value}) { | |
if ($_->[1] !~ /application\/(x-)?pdf/i) { | |
$field->{errors}->add(sprintf('Error for %s', $_->[0])); | |
} | |
} |
This file contains hidden or 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
diff --git script/maximus_mojo.pl script/maximus_mojo.pl | |
index 161c349..f0c7373 100644 | |
--- script/maximus_mojo.pl | |
+++ script/maximus_mojo.pl | |
@@ -3,7 +3,7 @@ use lib "./lib"; | |
use local::lib; | |
use Mojolicious::Lite; | |
use Config::Any; | |
-use Maximus::Schema; | |
+use DBI; |
This file contains hidden or 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 Foo; | |
use Validation::Class; | |
field 'foobar' => { | |
required => 1, | |
filters => 'numeric', # Comment this one out to make it work | |
default => [1,2], | |
}; | |
package main; |
This file contains hidden or 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
static void PrimitieveSinus() | |
{ | |
var positions = from x in Enumerable.Range(0,79) | |
select new { x, y = (int)(Math.Sin(x) * 2) }; | |
positions = positions.OrderBy(p => p.y).ThenBy(p => p.x); | |
var y_pos = positions.GroupBy(p => p.y).Select(p => p.Key); | |
foreach (int y in y_pos) | |
{ |
This file contains hidden or 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
*.xml | |
.* | |
!.gitignore | |
Makefile* | |
!Makefile.PL | |
META.yml | |
MYMETA.* | |
blib | |
build | |
/inc |
This file contains hidden or 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
--- C:/Users/christiaan/Downloads/calendar-eightysix-v1.1/js/calendar-eightysix-v1.1.js Sun Apr 25 19:02:52 2010 | |
+++ P:/klantendossier/release/www/layout/js/calendar-eightysix-v1.1-uncompressed.js Wed May 18 11:12:02 2011 | |
@@ -79,11 +79,11 @@ | |
}); | |
//Create the currect selected date | |
- if($defined(this.options.defaultDate)) | |
+ if(this.options.defaultDate != null) | |
this.selectedDate = new Date().parse(this.options.defaultDate).clearTime(); | |
- else if(this.options.linkWithInput && $chk(this.target.get('value'))) |
This file contains hidden or 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
[mergetool "kdiff3"] | |
path = C:/Program Files (x86)/KDiff3/KDiff3.exe | |
[merge] | |
tool = kdiff3 | |
[core] | |
autocrlf = true | |
# safecrlf = true | |
trustctime = false | |
editor = vi | |
[diff] |
NewerOlder