Skip to content

Instantly share code, notes, and snippets.

View metinsaylan's full-sized avatar
🤘
rocking on!

Metin Şaylan metinsaylan

🤘
rocking on!
View GitHub Profile
@sskylar
sskylar / category-loop1.html
Created April 13, 2017 19:49
Loop through a particular category (or tag) with Jekyll/Siteleaf
{% for post in site.posts %}
{% if post.categories contains 'Foo' %}
<li>{{ post.title }}</li>
{% endif %}
{% endfor %}
@metinsaylan
metinsaylan / geomet.out.template
Created November 17, 2016 07:52
PDStrip Geometry File Template
nse sym tg
x(ise) nof(ise) ngap gap(1:ngap)
yof(ise,1:nof(ise))
zof(ise,1:nof(ise))
@ajskelton
ajskelton / WP Customizer - Textarea
Last active May 14, 2024 04:54
Add a Textarea field to the WordPress Customizer.
$wp_customize->add_setting( 'themeslug_textarea_setting_id', array(
'capability' => 'edit_theme_options',
'default' => 'Lorem Ipsum Dolor Sit amet',
'sanitize_callback' => 'sanitize_textarea_field',
) );
$wp_customize->add_control( 'themeslug_textarea_setting_id', array(
'type' => 'textarea',
'section' => 'custom_section', // // Add a default or your own section
'label' => __( 'Custom Text Area' ),
@jsoningram
jsoningram / wpbase
Last active August 29, 2015 14:05
Install WordPress and Zurb Foundation
#!/bin/bash
# Install WordPress and Zurb Foundation
# Usage: wpbase <dirname> <themename>
# Installs into ~/$local/$dir
dir=$1
theme=$2
# Define local server dir
local="www"
@lukas-shawford
lukas-shawford / DataTableToHTML
Last active February 11, 2019 19:10
VB.NET: Convert DataTable to HTML table
'
' An elegant way of converting a DataTable into an HTML table using VB.NET.
'
' This uses a feature of VB.NET called XML Literals:
' http://msdn.microsoft.com/en-us/library/bb384629.aspx
'
' This allows you to write HTML/XML directly in the code, and use ASP.NET-style
' interpolation tags to include LINQ expressions in the body.
'
' A couple notes:
@ravasthi
ravasthi / _config.yml
Created February 15, 2012 08:59
Multiple authors on Jekyll
authors:
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
jorgen:
# Chan's Convex Hull O(n log h) - Tom Switzer <thomas.switzer@gmail.com>
TURN_LEFT, TURN_RIGHT, TURN_NONE = (1, -1, 0)
def turn(p, q, r):
"""Returns -1, 0, 1 if p,q,r forms a right, straight, or left turn."""
return cmp((q[0] - p[0])*(r[1] - p[1]) - (r[0] - p[0])*(q[1] - p[1]), 0)
def _keep_left(hull, r):
while len(hull) > 1 and turn(hull[-2], hull[-1], r) != TURN_LEFT:
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 1, 2024 10:58
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶