This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function launch(){ | |
chrome.app.window.create('app.html',{ | |
id: 'main', | |
'bounds': { | |
'width': 600, | |
'height': 600 | |
}, | |
minWidth: 600, | |
minHeight: 600, | |
maxWidth: 600, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Neon Clock", | |
"author": "Asif Ahmed", | |
"description": "A simple clock with date and time", | |
"version": "0.0.1", | |
"manifest_version": 2, | |
"app": { | |
"background": { | |
"scripts": ["background.js"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="js/konva.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="author" content="Asif Ahmed"> | |
<meta name="description" content="http://quickgrid.blogspot.com"> | |
<title>Simple Chrome Clock App</title> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#===============================================================================# | |
# Author: Asif Ahmed # | |
# Version: 0.2 # | |
# Site: http://quickgrid.blogspot.com # | |
# Description: IMDB Movie Search and Rating Extraction # | |
# Note: This code is highly dependent on the current page structure or, # | |
# html design of IMDB. If it changes the code will break. # | |
#===============================================================================# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Asif Ahmed | |
* Site: quickgrid.blogspot.com | |
* Description: kshapejs is a simple javascript library based on konvajs. | |
* It allow creating some basic shapes not defined in konva | |
* library. | |
*/ | |
(function(window){ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Triangle Library Demo</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
showargs(){ | |
a=1 | |
for i in $* | |
do | |
echo "The $a number arg is $i" | |
a=$(( $a + 1 )) | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#I will print in loop | |
for (( i = 0; i < 5; i++ )) | |
do | |
echo "hello word" | |
done | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#swich case code | |
echo "yes or no?" | |
read answer | |
case "$answer" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Do not use space before and after equal sign. | |
a=1 | |
b=3 | |
sum=`expr $a + $b` | |
sum=$(( $sum + 5 )) |