Skip to content

Instantly share code, notes, and snippets.

View PiiXiieeS's full-sized avatar

Jose Gascon PiiXiieeS

View GitHub Profile
@PiiXiieeS
PiiXiieeS / GenRandomGUID
Created November 1, 2012 23:55
GUID string generator (fastest)
function genGuidByRandToString() {
return Math.random().toString(36).slice(2);
}
@PiiXiieeS
PiiXiieeS / 0_reuse_code.js
Created October 20, 2013 13:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@PiiXiieeS
PiiXiieeS / javascript_resources.md
Created October 20, 2013 14:06 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@PiiXiieeS
PiiXiieeS / css_resources.md
Created October 20, 2013 14:06 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@PiiXiieeS
PiiXiieeS / sample-box.htm
Created October 20, 2013 16:03
Box with shadow
<div class="codehilite">
<pre>
<span class="k">[extensions]</span>
<span class="na">hgext.bookmarks</span> <span class="o">=</span>
<span class="na">hggit</span> <span class="o">=</span>
</pre>
</div>
@PiiXiieeS
PiiXiieeS / Insert external fonts in a css file.htm
Created October 20, 2013 16:45
How to insert fonts as external resources in a CSS file
/* Imports a css style from google API and equivalent to css.css */
@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Cabin|Cabin+Sketch:700);
/* The previous sentence in a css stylesheet will load the following styles from google API */
@font-face {
font-family: 'Droid Sans';
font-style: normal;
font-weight: normal;
src: local('Droid Sans'), local('DroidSans'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciL3hpw3pgy2gAi-Ip7WPMi0.woff') format('woff');
}
@PiiXiieeS
PiiXiieeS / JavaScript-Creole-Wiki-Markup-Parser.js
Created October 20, 2013 16:57
JavaScript Creole 1.0 Wiki Markup Parser
/*
* JavaScript Creole 1.0 Wiki Markup Parser
* $Id: creole.js 14 2009-03-21 16:15:08Z ifomichev $
* http://www.ivan.fomichev.name/2008/04/javascript-creole-10-wiki-markup-parser.html
*
* Copyright (c) 2009 Ivan Fomichev
*
* Portions Copyright (c) 2007 Chris Purcell
*
* Permission is hereby granted, free of charge, to any person obtaining a
@PiiXiieeS
PiiXiieeS / wget in a Mac.md
Created October 20, 2013 23:52
wget in Mac with the command curl

Create an alias of the command curl with the parameter -O

echo 'alias wget="curl -O"' >> ~/.bash_profile

Reboot the terminal session or open a new one to get the bash_profile loaded witht he new alias. You can also force loading the new basch_profile with the command

@PiiXiieeS
PiiXiieeS / Insert a progress bar to Powerpoint presentation .md
Last active July 14, 2024 14:57
Insert a progress bar to Powerpoint presentation

Intro

To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.

How to proceed

Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.

In the new window, select Insert > Module and copy this text in the blank page:

Sub AddProgressBar()
    On Error Resume Next

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation