Skip to content

Instantly share code, notes, and snippets.

View suensummit's full-sized avatar
🚀
Liftoff

Summit Suen suensummit

🚀
Liftoff
View GitHub Profile
@ggggggggg
ggggggggg / demo.jl
Last active August 29, 2015 14:08
IJulia Notebook Demo
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:7747d1f82629502d590ed8b134a51a0d231faf6a793701636386fffce40ce0d7"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@philipz
philipz / gist:1a5f7cd50bfcb938619a
Last active May 18, 2023 09:18
Docker image save/load by SSH
@iansinnott
iansinnott / docker_wrapper.sh
Last active March 20, 2016 12:29
Automatically set up boot2docker on a Mac whenever `docker` is called
#!/bin/bash
# A wrapper for the docker binary. Checks to make sure the docker host is
# set before executing docker commands.
docker() {
# Start the daemon if it's not running
if [ $(boot2docker status) != 'running' ]; then
echo 'Starting the Docker daemon.'
boot2docker start
@mingderwang
mingderwang / log
Created July 15, 2014 08:21
have fun with docker try! http://www.docker.com/tryit
you@tutorial:~$ docker run learn/tutorial echo hello world
hello world
you@tutorial:~$ docker run learn/tutorial apt-get install -y ping
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
iputils-ping
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.1 kB of archives.
@regit
regit / ssh-analysis-kibana
Last active August 7, 2019 21:27
SSH analysis dashboard
{
"title": "SSH analysis",
"services": {
"query": {
"list": {
"0": {
"query": "message:\"Invalid user\" AND sshd",
"alias": "Failed login",
"color": "#BF1B00",
"id": 0,
@ariaBennett
ariaBennett / youtubemeteor.js
Created May 30, 2014 19:23
youtube iframe api integration with meteor
if (Meteor.isClient) {
Meteor.startup(function(){
// Declare g2 namespace.
window.g2 = {};
// Declare he parse object on g2
g2.parse = {};
// parse a given url and return a data object
@ejjunju
ejjunju / Readme.txt
Created May 29, 2014 17:09
Simple analysis of a fwe aspects of the Wikipedia World cup 2014 squads data
World cup data analysis script!!
The data in cup.txt is taken from wikipedia(http://en.wikipedia.org/wiki/2014_FIFA_World_Cup_squads). the script cup.r analyses the data to create interesting charts about the 2014 world cup squads. Charts include boxplots og age, number of home/foreign based players for each country, clubs with more than 4 players in the world cup and leagues with more than 10 players in the World cup.
The data shows that the youngest team is the Netherlands(Dutch) team is the youngest. Only Mexico, Netherlands, Spain, England, Italy, Russia, germany and Iran have more home-based players than foreign based players. Most teams have less players based in their home countries. The European clubs dominate the number of clubs with the most players in the worls cup (gaian not a suprise)!! The world cup 2014 appears to be a sort of "European Cup"!!
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
/**
* Fetching data from BigQuery and present it in our sheet
* Author: Ido Green
* Date: 14/12/2013
*
* See: https://greenido.wordpress.com/2013/12/16/big-query-and-google-spreadsheet-intergration/
* Misc: https://developers.google.com/bigquery/
*/
//