Skip to content

Instantly share code, notes, and snippets.

Jeff Wakeman Deftwun

Block or report user

Report or block Deftwun

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
View id_rsa_jwake_eazywallz.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQJ2Y3KL0x5gGQpaXnGkUHcQz5zYCWS7RoQzjvP1xyF5guHV5TOz1mdv1PkIK9Ymj8FpB7WNaSJ6eXoH3IwWqDzb4rylIXvmg1WOE/EPEQvcPcEnXsW4hpejA0VrXXBeB5gZST7hES2gwUSJzmlVDOIg2p+wxPZaZpe9ShGoDdiXvjwF3zyBr3j/ZOPzv+W5tFfk/EzuzTX9Sl2uP4AVv+yBYIt19aUTW+BHhIM9jtHBuIXghzBXvfn7ol17sg+n2M+Xvj86yYQvdANCbnZb08uv3BS/1Ssedxq5ZS7+x65L7IxPg4bYu5t1jJxlK+6IoFWawk4/i6ZwVFUsBE6mUn Work@DESKTOP-7BFK72S
@Deftwun
Deftwun / wordpress-change-domain-migration.sql
Created Nov 11, 2016 — forked from chuckreynolds/wordpress-change-domain-migration.sql
Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: always backup your database. __STEP2: change the ‘oldsite.com’ and ‘newsite.com’ variables to your own. __STEP3: make sure your databa…
View wordpress-change-domain-migration.sql
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite);
/* only uncomment next line if you want all your current posts to post to RSS again as new */
#UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite);
View Simple 2d vector
//2d Vector class (based on Vector.js)
var Vector = function(x,y){ this.x = x || 0; this.y = y || 0; };
Vector.prototype={
rot: function(a) {
var theta = a * Math.PI/180,
cs = Math.cos(theta),
sn = Math.sin(theta),
px = this.x * cs - this.y * sn;
py = this.x * sn + this.y * cs;
this.x = px;
View free-code-camp-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View chrome.syncFileSystem.pseudocode.js
/*Does not work as is just the basic idea*/
var fs; //chrome.syncFileSystem.requestFileSystem();
var reader = new FileReader();
var file,data;
fs.root.getFile("somefile.txt",{},function(a){file = a;});
reader.onloadend = function(){data=this.result;};
file.file(function(f){reader.readAsText(f);});
You can’t perform that action at this time.