Skip to content

Instantly share code, notes, and snippets.

View ozknozsrt's full-sized avatar
🚀
Focusing

Özkan ÖZSERT ozknozsrt

🚀
Focusing
View GitHub Profile
@khaledsaikat
khaledsaikat / sub_category_dropdown.php
Last active January 30, 2018 05:12
Frontend AJAX Sub-Category Dropdown (Load sub-category dropdown based on parent category by ajax call)
<?php
/*
Plugin Name: Frontend AJAX Sub-Category Dropdown
Plugin URI: http://khaledsaikat.com
Description: Load sub-category dropdown based on parent category by ajax call
Version: 0.1
Author: Khaled Hossain
Author URI: http://khaledsaikat.com
*/
@kopiro
kopiro / set-cookie-good.php
Created August 26, 2011 13:38
Set cookie for all pages PHP
@Burke9077
Burke9077 / app.js
Created August 30, 2016 12:47
OBS Node Controller app.js
// Init packages for server
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var fs = require('fs');
// Install robot
var robot = require("robotjs");
@zefanja
zefanja / index.html
Last active June 8, 2019 19:33
My two files for my little robot project
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Robot Project</title>
<script src="/socket.io/socket.io.js"></script>
<script>
//Damit lesen wir den Gyroskopen aus
window.addEventListener("deviceorientation", handleOrientation, true);
@Burke9077
Burke9077 / socket-io-client.js
Created August 30, 2016 12:56
OBS Controller Socket.io client javascript
var socket = io();
function sceneChange(sceneNumber) {
socket.emit('sceneChange', { sceneNumber: sceneNumber });
}
function startBroadcast() {
socket.emit('startBroadcast');
}
function stopBroadcast() {
socket.emit('stopBroadcast');
@zamozniewicz
zamozniewicz / front-end-blogs.md
Last active July 30, 2019 03:36
Front-end blogs worth reading

##Front-end blogs worth reading##

Even though for the last few years blogs have been losing popularity to Twitter, Facebook and Google Plus and so on, they're still not dead and have not been replaced with other media.

###Articles, showcases, resources###

  • A List Apart - articles design, development, and web standards
  • DailyJS - news, tips, examples and reviews of a variety of JavaScript frameworks and modules.
  • Mozilla Hacks - one of key resources for people developing for the Open Web
@twoblokeswithapostie
twoblokeswithapostie / gist:9359477
Created March 5, 2014 01:29
Code using Momentjs for finding, today, this weekend, this months and next month to and from dates
// JavaScript code that finds dates for today, this weekend, this month, next month
// This weekend = next Sat and Sun
// This month = today to end of this month
// Next month = 1st of next month = end of next month
// Useful on Business Catalyst web app search form for searching from-to dates
// Requires jquery and moment.js
$(document).ready(function(){
$('#today_nav').on("click", function(){
@iamgaby7521
iamgaby7521 / random-class.js
Last active May 2, 2020 19:12
add random classes - js
(function($){
$(document).ready(function() {
var classes = [ 'style1', 'style2', 'style3' ]; // the classes you want to add
$('.item').each(function(i) { // the element(s) you want to add the class to.
$(this).addClass(classes[ Math.floor( Math.random()*classes.length ) ] );
});
});
})(jQuery);
@jesseeproductions
jesseeproductions / tec-pro-mini-hide-event-list.php
Created August 14, 2015 15:20
The Events Calendar Pro - Hide Mini Calendar Event List Until Calendar Date is Clicked
/*
* The Events Calendar Pro - Hide Mini Calendar Event List Until Calendar Date is Clicked
* TEC PRO @3.11.1
*/
add_action( 'wp_footer', 'tribe_hide_mini_calendar_list_until_clicked', 50 );
function tribe_hide_mini_calendar_list_until_clicked() {
?>
<script>
var $ = jQuery.noConflict();
@ozknozsrt
ozknozsrt / README.md
Last active September 5, 2020 16:10
Some of the resources discovered about React