Recently learned how to create a 3D cube in CSS3....So, wanted to recreate Recruiterbox's(where I work) logo in HTML5 as a weekend fun project :)
This file contains 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
// Little background about unknown properties | |
var myObject = Ember.Object.create({name: 'hi'}); // a plain simple ember object | |
/* | |
all the properties defined on the object are known properties | |
so the property "name" is a known property for myObject, | |
but any other properties which are not defined on this object are unknown properties | |
*/ | |
// age is an unknown property as we did not set "age" yet | |
myObject.get("age"); // => undefined |
This file contains 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(){ | |
/* | |
polyfills for IE8 | |
*/ | |
if(!Array.prototype.forEach){ | |
Array.prototype.forEach = function(callback){ | |
for(var i=0; i<this.length; i++){ | |
callback(this[i]); | |
} | |
} |
This file contains 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
Selectize.define('selectable_placeholder', function( options ) { | |
var self = this; | |
options = $.extend({ | |
placeholder: self.settings.placeholder, | |
html: function ( data ) { | |
return ( | |
'<div class="selectize-dropdown-content placeholder-container">' + | |
'<div data-selectable class="option">' + data.placeholder + '</div>' + | |
'</div>' |
This file contains 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
Selectize.define( 'clear_selection', function ( options ) { | |
var self = this; | |
//Overriding because, ideally you wouldn't use header & clear_selection simultaneously | |
self.plugins.settings.dropdown_header = { | |
title: 'Clear Selection' | |
}; | |
this.require( 'dropdown_header' ); | |
self.setup = (function () { |
This file contains 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
/* | |
https://github.com/brianreavis/selectize.js/issues/470 | |
Selectize doesn't display anything to let the user know there are no results. | |
This is a temporary patch to display a no results option when there are no | |
options to select for the user. | |
*/ | |
Selectize.define( 'no_results', function( options ) { | |
var self = this; |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2014 | |
Copyright (C) 2014 Addy Osmani @addyosmani | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
I recentlty had to fix a CSS bug that was only happening on a web view on a certain iPhone 7 and I tried replicating it on my iPhone but I couldn't.
Since, WebView
uses Safari underneath, I had to first determine which version of iOS Safari is installed. Turns out to know that you just have to know the iOS software version itself as Safari also mirrors the same version.
You can find that out inside Settings > General > About. Scroll until you find it. I found out the iPhone 7 had 11.2.X
.
The following step assumes that either
- You do not have an iPhone
This file contains 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
{ | |
"basics": { | |
"name": "Mudassir Ali", | |
"label": "Senior Frontend Engineer", | |
"picture": "https://en.gravatar.com/userimage/43915741/c8b27f3d9d1b9371afb9e59f78bde13d.jpg?size=200", | |
"phone": "", | |
"website": "https://registry.jsonresume.org/mudassir0909", | |
"summary": "Web frontend engineer with a passion for building large web applications that scale. Has a good sense of UI/UX design.", | |
"location": { | |
"city": "Sydney", |
This file contains 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
# This is for OSX, for others refer https://github.com/Chia-Network/chia-blockchain/wiki/CLI-Commands-Reference | |
PATH=/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon:$PATH | |
local DEST_DIR="/Volumes/seagate_ma_0/chia_cli_plots/" | |
local RAM_USAGE=4000 | |
local THREAD_COUNT=4 | |
local STAGGER=7200 # 2 hours | |
# Usage: | |
# chia_plot 5 /Volumes/myssd/ |