Skip to content

Instantly share code, notes, and snippets.

View sheetal-mandyal's full-sized avatar

Sheetal Mandyal sheetal-mandyal

View GitHub Profile
@Netzberufler
Netzberufler / style.css
Created April 12, 2017 13:18
Twenty Seventeen Full Width page template
body.page-template-template-full-width #content #primary {
max-width: 100%;
}
body.page-template-template-full-width #content #primary .entry-header,
body.page-template-template-full-width #content #primary .entry-content {
float: none;
width: 100%;
}
@scrapehero
scrapehero / yelp_business_details.py
Last active November 11, 2020 15:12
Python 2 code to extract yelp business details
from lxml import html
import json
import requests
from exceptions import ValueError
from time import sleep
import re,urllib
import argparse
def parse(url):
# url = "https://www.yelp.com/biz/frances-san-francisco"
@noelboss
noelboss / git-deployment.md
Last active May 2, 2024 15:47
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@mjangda
mjangda / better-author-urls.php
Created May 28, 2012 21:14
Better author URLs for WordPress. This enables author URLs like /author/firstname-lastname/ or /author/display_name/ instead of the usual /author/user_login/ but comes at a performance cost.
<?php
/**
* Handle author request to change query string as username
*
* This enables author URLs like /author/firstname-lastname/ or /author/display_name/ instead of the usual /author/user_login/
*/
function tc_handle_author_request( $query_vars ) {
if ( ! empty( $query_vars['author_name'] ) ) {