Skip to content

Instantly share code, notes, and snippets.

View educartoons's full-sized avatar

Eduar educartoons

View GitHub Profile
@educartoons
educartoons / InsertionSort.cpp
Created August 13, 2016 03:45
Method for Sorting known like Insertion Sort
void insertionSort(int *array, int array_length){
int i, j, key;
for(j=1;j<array_length;j++){
key = array[j];
i=j-1;
while(i>=0 && array[i]>key){
array[i+1]=array[i];
i=i-1;
}
<header class="header">
<div class="container">
<div class="header-logotype">
<a href=""><img src="./images/logo.png" width="150" alt=""></a>
</div>
<div class="header-search componentSearch">
<form action="">
<input placeholder="Search" type="text" class="search">
<span class="icon-search"></span>
.header {
background-color: #000;
padding: 0.425em 0;
}
.header-logotype {
float: left;
}
.header-utility {
/* ==========================================================================
Normalize.scss settings
========================================================================== */
/**
* Includes legacy browser support IE6/7
*
* Set to false if you want to drop support for IE6 and IE7
*/
/* Base
========================================================================== */
<section class="blog">
<div class="container">
<ul class="blog-ul-list">
<li class="blog-entry">
<figure class="image">
<img src="./images/post1.jpg" alt="">
</figure>
<div class="content">
<div class="content-wrapper">
<h2 class="title">Recording—Simplified: Ryan Montbleau on Mobile Recording</h2>
.blog-ul-list {
margin: 0;
padding: 0;
}
.blog-entry {
background-color: #13161a;
list-style: none;
width: 49.15254%;
float: left;
function chaplains_init() {
global $wp,$wp_rewrite;
$wp_rewrite->add_rule('chaplains/([0-9]{4})/?$',
'index.php?pagename=mypage&id=$matches[1]', 'top');
// $wp_rewrite->flush_rules(false);
}
add_action('init','chaplains_init');
@educartoons
educartoons / get_id
Last active November 7, 2018 04:04
const str = window.location.href ;
const regex = /\/chaplains\/([0-9]{1,5})/g;
const results = regex.exec(str);
const id = results[1];