Skip to content

Instantly share code, notes, and snippets.

View jPedroScript's full-sized avatar

JP jPedroScript

  • BeFree Open Innovation
View GitHub Profile
@rajendarreddyj
rajendarreddyj / pdfprintwithcss.html
Created February 6, 2017 06:23
jspdf with html canvas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello world</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
@rajendarreddyj
rajendarreddyj / pdfprint.html
Created February 5, 2017 20:06
print pdf from html using jspdf
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello world</title>
</head>
<body>
<h1>Hello world</h1>
#include <Windows.h>
#include "../../API/RainmeterAPI.h"
struct ACCENTPOLICY {
int nAccentState;
int nFlags;
int nColor;
int nAnimationId;
};
struct WINCOMPATTRDATA {
@basham
basham / css-media-queries-best-practices.md
Last active May 21, 2024 16:49
CSS Media Queries: Best Practices

CSS Media Queries: Best Practices

@scottstanfield
scottstanfield / cornify.js
Created September 5, 2013 14:21
cornify.js: konami code with rainbows and unicorns
// Modified to 'a a' instead of 'b a' due to vimium conflict
// ▲ ▲ ▼ ▼ ◀ ▶ ◀ ▶ a a
// example page: http://yckart.github.io/jquery.konami.js/
//
var kkeys = [], konami = "38,38,40,40,37,39,37,39,65,65";
$(document).keydown(function(e) {
kkeys.push( e.keyCode );
if ( kkeys.toString().indexOf( konami ) >= 0 ){
$(document).unbind('keydown',arguments.callee);
$.getScript('http://www.cornify.com/js/cornify.js',function(){
@dantoncancella
dantoncancella / Installing Sublime Text 2 on Fedora (yum)
Last active February 5, 2019 22:54
Installing Sublime Text 2 on Fedora (yum)
# Add repository
yum-config-manager --add-repo http://repo.cloudhike.com/sublime2/fedora/sublime2.repo
# Enable repository
yum-config-manager --enable
# Installin Sublime Text 2
yum install sublime-text
#Tested on Fedora 17, 18
@henriquemoody
henriquemoody / sublime-text-2.sh
Last active May 22, 2024 16:09
Install Sublime Text on Fedora.
#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET VERSION
#
# TARGET Default target is "/usr/local".
# VERSION If not defined tries to get the build into the Sublime Text 2 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#
@jonraasch
jonraasch / animated-icon.html
Created May 5, 2011 15:15
animated icon on hover
<!doctype html>
<html lang="en">
<head>
<title>Animated Icons (example)</title>
<style type="text/css">
body {