Skip to content

Instantly share code, notes, and snippets.

View rafszul's full-sized avatar

rafal szulczewski rafszul

View GitHub Profile
@rafszul
rafszul / Putting the “Web” into Webcomics.markdown
Created May 17, 2015 07:12
Putting the “Web” into Webcomics

Putting the “Web” into Webcomics ('-' * 32) Webcomics are enormous, inaccessible bitmaps that don't fit into an increasingly mobile and pixel-dense world. But they don't have to be.

A Pen by Taylor Hunt on CodePen.

License.

##Fixing npm permissions

You may receive an EACCES error when you try to install a package globally. This indicates that you do not have permission to write to the directories that npm uses to store global packages and commands.

You can fix this problem using one of three options:

Change the permission to npm's default directory. Change npm's default directory to another directory. Install Node with a package manager that takes care of this for you. You should back-up your computer before moving forward.

@rafszul
rafszul / README.md
Last active October 29, 2021 23:42
polygraph component - vue.js

polygraph component - vue.js

vue.js try-out with an example from SVG Graph Example

SVG Graph Example

This example showcases a combination of custom component, computed property, two-way binding and SVG support.

vue.js

@rafszul
rafszul / public-defer-javascript.html
Created August 14, 2021 01:19 — forked from freddielore/public-defer-javascript.html
[Defer Third Party Scripts] Defer third party scripts #javascript #html #public
<script type="text/javascript">
var app = {
init: function() {
window.addEventListener('scroll', function() {
if (window.__he == undefined) {
app.load();
}
});
window.addEventListener('mousemove', function() {
@rafszul
rafszul / cool-game-programming-blogs.opml
Created July 28, 2021 11:55 — forked from Reedbeta/cool-game-programming-blogs.opml
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Graphics, Games, Programming, and Physics Blogs</title>
</head>
<body>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/>
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/>
@rafszul
rafszul / meta-tags.md
Created July 28, 2021 11:54 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@rafszul
rafszul / yoast_seo_title_change-variable.php
Created July 28, 2021 00:27 — forked from amboutwe/yoast_seo_title_change-variable.php
Change existing or add custom title or meta template variables
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Remove Yoast SEO Change existing title or meta template variable
* Credit: Moshe Harush
* https://stackoverflow.com/questions/36281915/yoast-seo-how-to-create-custom-variables
* Last Tested: Unknown
*/
// define the wpseo_replacements callback
function filter_wpseo_replacements( $replacements ) {