// jQuery
$(document).ready(function() {
// code
})
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Value int | |
} |
<?php | |
/** | |
* XMod\HTML\Tag | |
* | |
* @author David Neilsen <david@panmedia.co.nz> | |
*/ | |
namespace XMod\HTML; | |
use XMod\Common\Args; | |
/** |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# Usage: | |
# Remove the .sh file extension when you put the script in your hooks folder! | |
# |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
#!/bin/bash | |
echo -n "gitsh% " | |
while read line; do | |
if [[ "$line" == ":exit" ]]; then | |
exit | |
fi | |
sh -c "git $line" | |
echo -n "gitsh% " |
; configuration for php ZendOpcache module | |
; Tuned for Magento 1.13.1 on PHP 5.5 | |
; Test server has 8 CPU cores and 32 GB RAM | |
zend_extension=opcache.so | |
[opcache] | |
opcache.memory_consumption=256 | |
opcache.interned_strings_buffer=12 | |
opcache.max_accelerated_files=16000 | |
opcache.enable_file_override=1 |
This is my response to an email asking about Domain-Driven Design in golang project.
Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.
That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.
Conclusions could be very different, if there was a different project, team or a story-teller.
So, I just learned that gf
exists. If your cursor is over a path in vim, and you type gf, it'll open that file/dir in a new buffer. You can also open in a new window/tab as detailed here.
In node, it'd be great if you could jump to a required
file, huh? Trouble is, typically you don't put the .js
on your require('./path/to/a/js/file')
. No matter, vim has your back, just add set suffixesadd+=.js
to your .vimrc and vim will try adding .js and see if it can find that file instead.
If you do a lot of spelunking in node_modules, it'd be great if you could jump to the directory of a required npm module too, right? A la, require('my-awesome-module')
. Well, you can add set path+=$PWD/node_modules
to your .vimrc too, and vim will add node_modules to the path, and jump to it's directory in node_modules (caveat: you must have opened vim from your project root for this too work).
For your cmd+c convenience:
Moved to git repository: https://github.com/denji/golang-tls
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)