Skip to content

Instantly share code, notes, and snippets.

View invokesus's full-sized avatar

Souvik Sen invokesus

View GitHub Profile
@invokesus
invokesus / 0_reuse_code.js
Created April 17, 2016 15:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Size Bedrooms Price
2104 3 399900
1600 3 329900
2400 3 369000
1416 2 232000
3000 4 539900
1985 4 299900
1534 3 314900
1427 3 198999
1380 3 212000
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@invokesus
invokesus / iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment.md
Created April 6, 2018 21:44
iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

Job Type Gender Percent Gender Percent Total
Entry Male 54 53
Entry Female 46 53
Manager Male 63 28
Manager Female 37 28
Senior Manager Male 67 12
Senior Manager Female 33 12
Vice President Male 71 5
Vice President Female 29 5
Senior VP Male 76 2
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"description": "A diverging stacked bar chart for sentiments towards a set of eight questions, displayed as percentages with neutral responses straddling the 0% mark",
"data": {
"values":
[
{
"question": "Question 1",
"type": "Strongly disagree",
"value": 24,
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {"url": "https://raw.githubusercontent.com/agconti/kaggle-titanic/master/data/train.csv","format": {
"type": "csv"
}},
"transform": [
{"calculate": "1", "as": "number"},
{"stack": "number","groupby": ["Pclass" ], "as":["v1", "v2"],"offset": "center",
"sort": {"field": "Survived", "order": "ascending"}},
{"stack": "number", "groupby": ["Sex"], "as": ["v3", "v4"],"offset": "center"}
{"nodes":[{"_children":[1,2],"_data":{"url":"data/flights-2k.json","format":{"type":"json"}},"id":0,"nodetype":"SourceNode"},{"_children":[3,4],"_parent":0,"_parse":{"distance":"number"},"id":1,"nodetype":"ParseNode"},{"_children":[4],"_parent":1,"_parse":{"distance":"number"},"id":2,"nodetype":"ParseNode"},{"_children":[5],"_parent":1,"bins":{"bin_maxbins_10_distance":{"bin":{"maxbins":10},"field":"distance","as":["bin_maxbins_10_distance","bin_maxbins_10_distance_end"],"signal":"layer_0_bin_maxbins_10_distance_bins","extentSignal":"layer_0_bin_maxbins_10_distance_extent"}},"id":3,"nodetype":"BinNode"},{"_children":[8],"_parent":1,"bins":{"bin_maxbins_10_distance":{"bin":{"maxbins":10},"field":"distance","as":["bin_maxbins_10_distance","bin_maxbins_10_distance_end"],"signal":"layer_1_bin_maxbins_10_distance_bins","extentSignal":"layer_1_bin_maxbins_10_distance_extent"}},"id":4,"nodetype":"BinNode"},{"_children":[6],"_parent":3,"dimensions":{"bin_maxbins_10_distance":true,"bin_maxbins_10_distance_end":true},"
{"area":{"0":{"_children":[1],"_data":{"url":"data/unemployment-across-industries.json","format":{"type":"json"}},"id":0,"nodetype":"SourceNode"},"1":{"_children":[2],"_parent":0,"_parse":{"date":"date","count":"number"},"id":1,"nodetype":"ParseNode"},"2":{"_children":[3],"_parent":1,"formula":{"yearmonth_date":{"as":"yearmonth_date","timeUnit":"yearmonth","field":"date"}},"id":2,"nodetype":"TimeUnitNode"},"3":{"_children":[4],"_parent":2,"dimensions":{"yearmonth_date":true},"measures":{"count":{"sum":"sum_count"}},"id":3,"nodetype":"AggregateNode"},"4":{"debugName":"main","_children":[],"_parent":3,"type":"main","refCounts":{"main":3,"raw":0},"_name":"main","_source":"main","id":4,"nodetype":"OutputNode"}},"area_cumulative_freq":{"0":{"_children":[1],"_data":{"url":"data/movies.json","format":{"type":"json"}},"id":0,"nodetype":"SourceNode"},"1":{"_children":[2],"_parent":0,"_parse":{"IMDB_Rating":"number"},"id":1,"nodetype":"ParseNode"},"2":{"_children":[3],"_parent":1,"transform":{"sort":[{"field":"IMDB_Rat