Simple example of Server Send Events By Steren Giannini for Paris 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="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<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
// Poker Tournament script | |
// by Steren Giannini http://www.steren.fr | |
// # How to use | |
// Use "=computePlayerScoreAndRank()" to generate a tournament ladder, as first argument select a column of player name, as second argument, select the cells of game | |
///////////// | |
// Variables | |
///////////// |
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
var rows = []; | |
$('table.startups tr').each(function(i, n){ | |
var $row = $(n); | |
var connect = {}; | |
$row.find('td.connect a').each(function(j, m){ | |
var href = $(m).attr('href'); | |
var key = 'contact'; |
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
# Add this file at the root of your directory, | |
# and your static files in a public/ folder. | |
# Use 'gcloud preview app deploy .' to publish to AppEngine. | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: /(.+) |
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 | |
FILE=$(echo pingstats-$(date '+%Y-%m-%d-%H-%M').csv) | |
echo "datetime,min,avg,max,stddev" > ${FILE} | |
while true | |
do | |
NOW=$(date -u +"%Y-%m-%d %H:%M:%S") | |
# retrieve data from ping: min,avg,max,stddev | |
VALUES=$(ping -c 4 steren.fr | tail -1 | awk '{print $4}' | sed 's/\//,/g') | |
echo "${NOW},${VALUES}" >> ${FILE} |
I really liked how Duminda Perera showcased her colors in "Minimalist Color Palettes 2015" https://www.behance.net/gallery/32154055/Minimalist-Color-Palettes-2015. I decided to use this palette showcase technique to with the theme of my wedding.
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
public class Application extends Controller { | |
@Catch(value={Exception.class}) | |
public static void onException(Exception ex) { | |
StringWriter exceptionWriter = new StringWriter(); | |
ex.printStackTrace(new PrintWriter(exceptionWriter)); | |
Map<String, Object> payload = new HashMap<String, Object>(); | |
payload.put("message", exceptionWriter.toString()); | |
Map<String,String> serviceContextData = new HashMap<String, String>(); |
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> | |
<title>Steren Giannini, portfolio</title> | |
<meta name="description" content="Hello, WebVR! - A-Frame"> | |
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-assets> |