Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Ugarz's full-sized avatar

Ugo Ugarz

View GitHub Profile

WIP App with PhoneGap + Angular

Application PhoneGap + Angularjs. WIP and debug.

A Pen by Ugo on CodePen.

License.

@Ugarz
Ugarz / index.html
Created February 5, 2015 11:38
Filtrer avec Angularjs // source http://jsbin.com/soyasa
<!DOCTYPE html>
<!-- Appel du module "App" -->
<html ng-app="App">
<head>
<meta name="description" content="Filtrer avec Angularjs" />
<!-- Appel de Bootstrap pour faire un truc joli -->
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<!-- Appel de la librairie AngularJs -->
@Ugarz
Ugarz / Filtre-Angularjs.markdown
Created February 5, 2015 13:11
Filtre Angularjs
@Ugarz
Ugarz / Flex-grid.markdown
Created February 13, 2015 20:06
Flex grid
@Ugarz
Ugarz / Doughnut-Data-D3-js.markdown
Created February 18, 2015 10:56
Doughnut Data D3 js
@Ugarz
Ugarz / mobileAndTabletcheck.txt
Created December 10, 2015 13:06
Check if your device if mobile or tablet in Javascript
window.mobileAndTabletcheck = function() {
var check = false;
(function(a) {
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) ||
if (window.mobileAndTabletcheck == true)
@Ugarz
Ugarz / index.md
Last active June 1, 2020 23:53
Encoding and Decoding images in base64 with Nodejs

Encoding and Decoding images in base64 with Node

Take a trump.jpg and launch this gist.

trump.jpg

var fs = require('fs');

function base64_encode(file) {
@Ugarz
Ugarz / remove_node_modules.md
Last active November 19, 2018 09:56 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo

Add 'node_modules' to .gitignore file and remove versionned ones

git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@Ugarz
Ugarz / README.md
Created August 28, 2016 20:20 — forked from christophermanning/README.md
Voronoi Diagram with Force Directed Nodes and Delaunay Links

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.

Controls

@Ugarz
Ugarz / gist:fcc74890ada664fde505f00d238fe38a
Last active July 6, 2017 13:09 — forked from lttlrck/gist:9628955
Rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote