Use the github API to get a list of gists from your github account and print them in HTML.
Forked from Kamil Slowikowski's Pen List of github gists.
A Pen by Lanorise Cainion on CodePen.
# Begin build properties | |
# EOL UNIX | |
# 0.0 644 /system/build.prop | |
# | |
# Note: Some changes are Device and OS/ROM independent! | |
# Note2: Some settings are between | |
# performance and security <- I prefer last one | |
# | |
ro.build.id= ----- | |
ro.build.display.id= ----- |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
#!/bin/bash | |
# Clones as usual but creates local tracking branches for all remote branches. | |
# To use, copy this file into the same directory your git binaries are (git, git-flow, git-subtree, etc) | |
clone_output=$((git clone "$@" ) 2>&1) | |
retval=$? | |
echo $clone_output | |
if [[ $retval != 0 ]] ; then | |
exit 1 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Demo</title> | |
<link href="lib/codemirror.css" rel="stylesheet"> | |
<style type="text/css"> | |
html, body { height: 100%; margin: 0; padding: 0; } | |
.wrap { | |
position: relative; | |
height: 100%; |
Use the github API to get a list of gists from your github account and print them in HTML.
Forked from Kamil Slowikowski's Pen List of github gists.
A Pen by Lanorise Cainion on CodePen.
Another little widget I'll be using on my new site very soon :) I wanted a way of showing some code I write in a fancy way, this helped me achieve it!
Forked from Simon Goellner's Pen Sublime Editor.
A Pen by Lanorise Cainion on CodePen.
A custom code editor palette in pure CSS!
Forked from Varo's Pen Custom code editor palette in pure CSS.
A Pen by Lanorise Cainion on CodePen.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Ext JS Grid Example</title> | |
<script src="http://cdn.sencha.io/ext-4.0.7-gpl/ext-all.js"> </script> | |
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.0.7-gpl/resources/css/ext-all.css" /> |
// http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html | |
jQuery.githubUserRepositories = function(username, callback) { | |
jQuery.getJSON("https://api.github.com/users/" + username + "/repos?callback=?", callback); | |
} | |
jQuery.fn.loadRepositores = function(username) { | |
this.html("<span>Querying GitHub for repositories...</span>"); | |
var target = this; |
// Create a JSONP wrapper | |
function executeYQL(yql, callbackFuncName) { | |
var url = "http://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(yql) + "&env=store://datatables.org/alltableswithkeys&format=json&callback="+callbackFuncName; | |
var head = document.getElementsByTagName('head')[0]; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = url; | |
head.appendChild(script); | |
} |