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/bash | |
# <bitbar.title>Paribu BitBar Plugin</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>rizasabuncu</bitbar.author> | |
# <bitbar.author.github>riza</bitbar.author.github> | |
# <bitbar.desc>Shows the current bitcoin price for Bitcoins from Paribu.com</bitbar.desc> | |
# <bitbar.image>https://rizasabuncu.com/paribu.png</bitbar.image> | |
# <bitbar.dependencies>none</bitbar.dependencies> |
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
https://shoutnow.me/#9sb50y9drf53t1kr |
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
#include <stdio.h> | |
#include <time.h> | |
#include <stdlib.h> | |
int dice() { | |
return ((rand() % 6) + 1); | |
} | |
int 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
$("input[type=radio][value=5]").prop("checked",true);$("input[type=radio][value=99]").prop("checked",true);$("input[type=text]").not("[disabled]").val("bu nedir?");$("select").val(5); __doPostBack('btnPB',''); |
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
durationStruct := duration.Duration{Days:2} | |
durationString := durationStruct.String() |
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
durationStruct := duration.Duration{Days:2} | |
fmt.Printf("Hours: %v\n",durationStruct.ToDuration().Hours()) // Hours: 48 | |
fmt.Printf("Minutes: %v\n",durationStruct.ToDuration().Minutes()) // Minutes: 2880 | |
fmt.Printf("Seconds: %v\n",durationStruct.ToDuration().Seconds()) // Seconds: 172800 | |
durationString,err := duration.FromString("P2D") | |
if err != nil { | |
log.Fatal(err) | |
} |
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
testDuration := duration.Duration{ | |
Years: 1, | |
Weeks: 2, | |
Days: 3, | |
Hours: 4, | |
Minutes: 5, | |
Seconds: 6 | |
} | |
fmt.Printf("Duration: %v",testDuration.ToDuration()) // Duration: 9172h5m6s |
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
testDuration := "P1Y2DT3H4M5S" | |
durationFromString, err := duration.FromString(testDuration) | |
if err != nil { | |
log.Fatal(err) | |
} | |
fmt.Printf("Years: %v \n",durationFromString.Years) // Years: 1 | |
fmt.Printf("Days: %v \n",durationFromString.Days) // Days: 2 | |
fmt.Printf("Hours: %v \n",durationFromString.Hours) // Hours: 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
# -*- coding: utf-8 -*- | |
# @Author: riza | |
# @Date: 2016-10-01 12:15:25 | |
# @Last Modified by: riza | |
# @Last Modified time: 2016-10-01 13:06:27 | |
from random import randint | |
class bcolors: | |
HEADER = '\033[95m' |
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
func turkishDate() string { | |
t := time.Now() | |
theTime := t.Format("02 January 2006") | |
month := strings.Split(theTime," ") | |
switch month[1] { | |
case "January": | |
str := strings.Replace(theTime, "January", "Ocak", -1) | |
return str | |
case "February": | |
str := strings.Replace(theTime, "February", "Şubat", -1) |