If you use atom... download & install the following packages:
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
:root { | |
--font-size: 14.5; | |
--font-size-hints: 12.5; | |
--font-size-url: 12.5; | |
--font-weight: normal; | |
--font-weight-medium: medium; | |
--font-weight-bold: bold; | |
--font: "SF UI Display", "Helvetica", "Arial", sans-serif; /* Font used in the UI */ |
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 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
/** | |
* @param {number[]} nums | |
* @param {number} target | |
* @return {number[]} | |
*/ | |
var twoSum = function(nums, target) { | |
//hash table | |
var hash = {}; |
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
const moneyFilter = value => Intl.NumberFormat('en-IN', { style: 'currency', currency: 'USD' }).format(value) | |
console.log(moneyFilter(3210)) // "US$ 3,210.00" |
Note: I had issues with setting up my Facebook app so authentication would work. I'd receive the error at the bottom, and it took me a while to figure out what was wrong
Here are the steps I took:
- Go to
http://developers.facebook.com/
, create, and setup your app - When inside the dashboard, click "Settings"
- Click "Add Platform"
- Choose website (for authentication via the web app)
- Add
http://localhost:3000/
as "Site URL" (and "Mobile URL" if necessary) - Add
localhost
to "App Domains" above
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
<div class="container" style="width: 750px; margin: 0 auto;"> | |
<div class="row-full"> | |
--- Full width container --- | |
</div> | |
</div> | |
.row-full{ |
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
.profile-pic { | |
float: left; | |
width: 250px; | |
@include respond-to(xs) { | |
width: 100%; | |
} | |
@include respond-to(sm) { | |
width: 125px; | |
} |
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
const SHA256 = require('crypto-js/sha256'); | |
class Block { | |
constructor(index, timestamp, data, previousHash = ''){ | |
this.index = index; | |
this.timestamp = timestamp; | |
this.data = data; | |
this.previousHash = previousHash; | |
this.hash = this.calculateHash(); | |
this.nonce = 0; |
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
// Given two numbers return the biggest one | |
@function get-biggest-num-between($a, $b) { | |
$c: null; | |
@if ($a > $b) { | |
$c : $a; | |
} | |
@if ($a < $b) { | |
$c : $b; | |
} | |
@else if ($a = $b){ |
NewerOlder