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
// F is a doctrine entity. | |
class F { | |
private $foo, $bar; // all strings \o/ | |
} | |
// I have a native query that returns the following resultset: | |
$rs = [ | |
['foo' => 'hello', 'bar' => 'world', 'trueOrFalse' => true], | |
//.. | |
]; |
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
public class PrimeWebDefaultRequestShould | |
{ | |
private readonly TestServer _server; | |
private readonly HttpClient _client; | |
public PrimeWebDefaultRequestShould() | |
{ | |
// Arrange | |
_server = new TestServer(new WebHostBuilder() | |
.UseStartup<Startup>()); | |
_client = _server.CreateClient(); |
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
foldr + 0 [1..3]: (1 + (2 + (3 + 0))) | |
foldl + 0 [1..3]: (((0 + 1) + 2) + 3) |
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
#lang racket | |
(define atom? | |
(lambda (x) | |
(and (not (pair? x)) (not (null? x))))) | |
;; Is each element in list l an atom? | |
(define lat? | |
(lambda (l) | |
(cond | |
((null? l) #t) |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Bundles | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
NewerOlder