Skip to content

Instantly share code, notes, and snippets.

@trigolgy
trigolgy / bash-cheatsheet.sh
Created May 4, 2018 12:28 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@trigolgy
trigolgy / redirect.js
Last active April 9, 2017 21:01
guncel tarihe gore sayfa yonlendirmesi yapan js metodu
function load() {
var date = new Date();
var currentDay = date.getDate();
var currentMonth = date.getMonth();
var currentDayStr = currentDay.toString();
var currentMonthStr = currentMonth.toString();
var day_month = currentDayStr.concat('-',currentMonthStr);
console.log(currentDay );
console.log(currentMonth );
console.log(day_month );
@trigolgy
trigolgy / index.html
Last active April 9, 2017 21:01
guncel tarihe gore sayfa yonlendirmesi yapan js metod kullanimi
<html>
<head>
<script type="text/javascript" src="scripts/redirect.js">
</head>
</html>
@trigolgy
trigolgy / deneme.java
Last active March 2, 2016 13:00
deneme
public Object invoke(MethodInvocation invocation) throws Throwable {
long start = System.currentTimeMillis();
before(invocation.getMethod(), invocation.getArguments());
try {
Object result = invocation.proceed();
return result;
} finally
{
if (invocation != null &&
invocation.getMethod() != null &&
String hql = "SELECT E.firstName FROM Employee E";
Query query = session.createQuery(hql);
List results = query.list();