Skip to content

Instantly share code, notes, and snippets.

View arangates's full-sized avatar
🔬
Gedankenerfahrung

Aranganathan Rathinavelu arangates

🔬
Gedankenerfahrung
View GitHub Profile
@arangates
arangates / pre-receive.sh
Created November 3, 2016 05:37
My pre-receive hook to update my website when I "git push origin master:live"
#!/bin/sh
while read old new branch
do
case "$new-$branch" in
000000000000000000*)
: echo "ignore deleted"
;;
*-refs/heads/live )
echo "UPDATING LIVE SITE";
git archive $new | (
@arangates
arangates / index.html
Created November 3, 2016 09:15
Rock, Paper, Scissors Game
<!-- STARTING SCREEN -->
<header class="main-header">
<div class="container">
<h1>
<span>Rock,</span>
<span>Paper,</span>
<span>Scissors</span>
</h1>
@arangates
arangates / glowtext.html
Last active December 17, 2016 10:48
GLowing text css
<!DOCTYPE html>
<html>
<head>
<style>
@import url(http://fonts.googleapis.com/css?family=Concert+One);
h1 {
animation:glow 10s ease-in-out infinite;
<!--progress page-->
<!-- Breadcrumb -->
<div >
<div *ngIf="loader===false" id="seconds" class="seconds">
<div id="bar" class="bar animating"></div>
</div>
<ol class="breadcrumb">
<li style="vertical-align: bottom;">
@arangates
arangates / JsPdf.ts
Created June 11, 2017 09:30
JsPDF (PDF from HTML tool)
// JsPDF:
// creating pdf using jspdf api's
createPDF(){
const doc = new jsPDF();
@arangates
arangates / nodejsinstall.txt
Last active June 11, 2017 09:35
Nodejs installation ubuntu
Node- V6 :
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
Node- V5 :
@arangates
arangates / libzip_simple.c
Created June 11, 2017 17:13 — forked from mobius/libzip_simple.c
using libzip to extract files
/* Copyright (C) 2011 rocenting#gmail.com */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
@arangates
arangates / animated-data-bar-chart-graph.markdown
Created June 27, 2017 13:08
Animated Data Bar Chart & Graph

Animated Data Bar Chart & Graph

An interactive bar graph packed with animations and information. Built with CSS and jQuery.

A Pen by Aranganathan on CodePen.

License.

{
"lighthouseVersion": "2.3.0",
"generatedTime": "2017-08-08T14:12:46.823Z",
"initialUrl": "https://vedhabase.firebaseapp.com/",
"url": "https://vedhabase.firebaseapp.com/",
"audits": {
"is-on-https": {
"score": true,
"displayValue": "",
"rawValue": true,
@arangates
arangates / example.component.ts
Created December 11, 2017 08:10 — forked from ckimrie/example.component.ts
Example on how to achieve RxJS observable caching and storage in Angular 2+. Ideal for storing Http requests client side for offline usage.
import { Component, OnInit, OnDestroy } from '@angular/core';
import {Http} from "@angular/http";
import { LocalCacheService } from "./local-cache.service";
@Component({
selector: 'app-example',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class ExampleComponent implements OnInit, OnDestroy {