Skip to content

Instantly share code, notes, and snippets.

Manoi man-oi

Block or report user

Report or block man-oi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@man-oi
man-oi / getCookie.js
Created May 14, 2019
function to get Cookie
View getCookie.js
export default function (cname) {
const name = `${cname}=`;
const decodedCookie = decodeURIComponent(document.cookie);
const ca = decodedCookie.split(';');
for (let i = 0; i < ca.length; i += 1) {
let c = ca[i];
while (c.charAt(0) === ' ') {
c = c.substring(1);
}
if (c.indexOf(name) === 0) {
@man-oi
man-oi / jquery-plugin.js
Created Apr 29, 2019
jquery plugin template
View jquery-plugin.js
(function () {
var pluginName = "pluginName",
defaults = {
propertyName: "value"
};
// The actual plugin constructor
function Plugin(element, options) {
this.element = element;
// jQuery has an extend method which merges the contents of two or
// more objects, storing the result in the first object. The first object
View Delete Duplicate Posts in Wordpress
DELETE bad_rows.* from wp_posts as bad_rows inner join ( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1 ) as good_rows on good_rows.post_title = bad_rows.post_title and good_rows.min_id <> bad_rows.id
View keybase.md

Keybase proof

I hereby claim:

  • I am wumble on github.
  • I am wumble (https://keybase.io/wumble) on keybase.
  • I have a public key ASDTSzmIQRvMhavkcqsy-hmncrzuv9g_w0nGcehiPBhb4go

To claim this, I am signing this object:

View Apache Error Testing
ErrorDocument 403 /403.php
ErrorDocument 401 /401.php
ErrorDocument 410 /410.php
RewriteCond %{QUERY_STRING} ^status=401$
RewriteRule ^ - [L,R=401]
RewriteCond %{QUERY_STRING} ^status=403$
RewriteRule ^ - [L,R=403]
RewriteCond %{QUERY_STRING} ^status=404$
RewriteRule ^ - [L,R=404]
@man-oi
man-oi / dabblet.css
Created Jan 21, 2016
scripting gradients
View dabblet.css
/**
* scripting gradients
*/
.wrapper {
width: 400px;
margin: auto;
}
.box {
@man-oi
man-oi / dabblet.css
Created Jan 21, 2016
animate gradients
View dabblet.css
/**
* animate gradients
*/
.wrapper {
width: 400px;
height: 400px;
margin: 100px auto;
background-color: #aaa;
@man-oi
man-oi / dabblet.css
Last active Jan 19, 2016
animate backgrounds
View dabblet.css
/* animate backgrounds */
.wrapper {
width: 400px;
height: 400px;
margin: auto;
background-color: #333;
overflow: hidden;
@man-oi
man-oi / dabblet.css
Last active Jan 21, 2016
animate gradients
View dabblet.css
/**
* animate gradients
*/
.wrapper {
width: 400px;
height: 400px;
margin: 100px auto;
background-color: #aaa;
@man-oi
man-oi / dabblet.css
Last active Jan 19, 2016
profile image / settings
View dabblet.css
/**
* profile image / settings
*/
.container {
width: 700px;
height: auto;
margin: auto;
background-color: #333;
You can’t perform that action at this time.