Skip to content

Instantly share code, notes, and snippets.

View halityurttas's full-sized avatar

Halit YURTTAŞ halityurttas

View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@MatthewBarker
MatthewBarker / DataService.cs
Created February 18, 2015 15:54
Server side sorting, paging & filtering from DataTable to Kendo UI Grid
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Newtonsoft.Json;
/// <summary>
/// Represents the data service.
/// </summary>
public class DataService
@marcinwol
marcinwol / compile_monero.sh
Created August 16, 2015 01:19
Ubuntu 14:04: compile CPUMiner/minerd (forked by LucasJones & Wolf) for Monero mining
# get git to install it
sudo apt-get install git
# dependencies
sudo apt-get install build-essential autotools-dev autoconf libcurl3 libcurl4-gnutls-dev
# download latest version
git clone https://github.com/wolf9466/cpuminer-multi
cd cpuminer-multi/
@tarikcayir
tarikcayir / get_daft_posts.php
Created August 30, 2015 09:02
WP_Query get draft posts!
<?php
// Query args.
$args = array(
'post_type' => array( 'post', 'page' ),
'post_status' => 'draft'
);
$query = new WP_Query( $args );
@lopspower
lopspower / README.md
Last active May 16, 2025 20:12
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@bluecat76
bluecat76 / summernote-ext-minidiag.js
Created March 16, 2016 14:56
Minimal dialog example for summernote v0.8.1
(function (factory) {
/* global define */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
@deviantony
deviantony / README.md
Last active September 4, 2024 02:41
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@alirezanet
alirezanet / netsh.txt
Last active March 5, 2025 16:21
netsh ip/port forwarding sample
add forwarding interface:
netsh interface portproxy add v4tov4 listenport={srcPort} listenaddress={srcIp} connectport={DesPort} connectaddress={DesIp}
show interface:
netsh interface portproxy show v4tov4
delete interface:
netsh interface portproxy delete v4tov4 listenport={srcPort} listenaddress={srcIp}
-----------------------------
@jpschroeder
jpschroeder / service_broker_test.sql
Last active February 21, 2023 14:51
Streaming with SQL Server
--
-- setup
--
create database servicebrokertest
go
alter database servicebrokertest set enable_broker
go
use servicebrokertest
go
@ahmetkucukoglu
ahmetkucukoglu / github_to_iis_deployment
Last active April 27, 2024 15:47
Jenkinsfile - Github to IIS Deployment
//Kaynak kodun adresi
String githubUrl = "https://github.com/ahmetkucukoglu/aspnetcore-ci-sample"
//Kaynak kodun içerisindeki projenin ismi
String projectName = "CISample/CISample.App"
//Kaynak kodun publish edileceği dizin
String publishedPath = "CISample\\CISample.App\\bin\\Release\\netcoreapp2.2\\publish"
//Hedef makinesindeki IIS'de tanımlı olan sitenizin ismi