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 | |
FILENAME=main.csv | |
HDR=$(head -1 $FILENAME) | |
split -l 1000 $FILENAME xyz | |
n=1 | |
for f in xyz* | |
do | |
if [ $n -gt 1 ]; then | |
echo $HDR > Part${n}.csv | |
fi |
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 class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<link rel="stylesheet" href="css/foundation.css" /> | |
</head> | |
<body> | |
<div class="row"> |
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
$(document).ready(function($) { | |
var timelines = $('.cd-horizontal-timeline'), | |
eventsMinDistance = 100; | |
(timelines.length > 0) && initTimeline(timelines); | |
function initTimeline(timelines) { | |
timelines.each(function() { | |
var timeline = $(this), | |
timelineComponents = {}; | |
//cache timeline components |
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
$container.on( 'layoutComplete', | |
function( event, laidOutItems ) { | |
console.log( 'Isotope layout completed on ' + laidOutItems.length + ' items' ); | |
var last_x = false; | |
jQuery(laidOutItems).removeClass('popup-left'); | |
jQuery(laidOutItems).each(function(i, v){ | |
console.log(i); | |
var current_x = jQuery(this.element).offset().left; | |
if( last_x !== false && last_x > current_x && typeof laidOutItems[i-1] !== 'undefined'){ |
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
/** | |
* Accept three parameters | |
* @param {string} type : either js or css | |
* @param {string} url : url of the resource to be loaded | |
* @param {function} : function to be called back after resource loaded (Optional) | |
*/ | |
function loadResource(type, url, callbackFunction) { | |
var tag, mimeType; | |
if (type == 'js') { | |
tag = 'script'; |