Skip to content

Instantly share code, notes, and snippets.

@menuka94
menuka94 / bootstrap-iso.css
Created March 9, 2018 14:49
Bootstrap CSS with Namepspace Wrapper
.bootstrap {
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (https://getbootstrap.com/docs/3.3/customize/?id=781848977ca0d1ac6d8cccbf4e88134f)
* Config saved to config.json and https://gist.github.com/781848977ca0d1ac6d8cccbf4e88134f
*/
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
},
output: {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Book</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
@menuka94
menuka94 / Commit Formatting.md
Created November 11, 2017 10:44 — forked from brianclements/Commit Formatting.md
Angular Commit Format Reference Sheet

Git Commit Guidelines

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the AngularJS change log.

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

@menuka94
menuka94 / .travis.yml
Created October 13, 2017 08:33 — forked from ryboe/.travis.yml
Example .travis.yml for Golang
language: go
# Only the last two Go releases are supported by the Go team with security
# updates. Any versions older than that should be considered deprecated.
# Don't bother testing with them. tip builds your code with the latest
# development version of Go. This can warn you that your code will break
# in the next version of Go. Don't worry! Later we declare that test runs
# are allowed to fail on Go tip.
go:
- 1.7
@menuka94
menuka94 / vscode-user-settings.json
Last active October 8, 2017 06:47
Visual Studio Code Settings
{
"vim.disableAnnoyingNeovimMessage": true,
"editor.fontSize": 18,
"editor.fontFamily": "Ubuntu Mono",
"window.zoomLevel": 1,
"vim.useCtrlKeys": false,
"workbench.startupEditor": "newUntitledFile",
"files.autoSave": "onFocusChange"
}
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@menuka94
menuka94 / goth
Created August 31, 2017 09:31 — forked from ammario/goth
golang test coverage html
#!/bin/bash
go test -coverprofile=coverage.out
go tool cover -html=coverage.out
@menuka94
menuka94 / main.go
Created August 1, 2017 04:58 — forked from manishtpatel/main.go
GoLang Encrypt string to base64 and vice versa using AES encryption.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"fmt"
"io"
)
@menuka94
menuka94 / one.go
Last active August 8, 2017 08:23
Go - HTTP Requests
// https://stackoverflow.com/questions/40006631/sending-post-request-in-golang-with-header
package main
import (
"fmt"
"net/http"
"crypto/tls"
)
func main() {