General Rule: You want to be as specific as it makes sense to be. If some styling isn't applied to an element, check the specificity.
- Inline Styles
An inline style lives within your HTML document. It is attached directly to the element to be styled.
General Rule: You want to be as specific as it makes sense to be. If some styling isn't applied to an element, check the specificity.
An inline style lives within your HTML document. It is attached directly to the element to be styled.
General Rule: Use .call() or .apply() when you want to execute a function in a different context or scope. *Keep in mind .call() and .apply() can only be called on functions.
var person1 = {name: 'Marvin', age: 20};
var person2 = {name: 'Zaphod', age: 30};
| fn main() { | |
| let mut i :uint = 1; | |
| while i <= 100 { | |
| if i % 15 == 0 { | |
| println!("CracklePop"); | |
| } | |
| else if i % 5 == 0 { | |
| println!("Pop"); | |
| } | |
| else if i % 3 == 0 { |
| #!/bin/bash | |
| echo "tmux-ressurect-automatic-rename started!" | |
| for session_window in $(tmux list-windows -a -F '#{session_name}:#{window_index}'); do | |
| tmux set-window-option -t $session_window automatic-rename on | |
| echo "automatic-rename enabled for $session_window" | |
| done |
| # Before running this script execut the following command: | |
| # $ pip install requests | |
| # To run this script execute: | |
| # $ python export_foursquare_checkins.py | |
| import requests | |
| import json | |
| url_template = 'https://api.foursquare.com/v2/users/self/checkins?limit=250&oauth_token={}&v=20131026&offset={}' | |
| # If you navigate to https://developer.foursquare.com/docs/explore, Foursquare |
Unit test: A test written by a programmer for the purpose of ensuring that the production code does what the programmer expects it to do.
Other types of tests: integration test, end-to-end test, acceptance test, etc.
| export function convertBigEndianArray(arr: Uint8Array): number { | |
| let sum = 0; | |
| for (let i = 0; i < arr.length; i++) { | |
| sum *= 256; | |
| sum += arr[i]; | |
| } | |
| return sum; | |
| } |
| # Source: https://gist.github.com/tedder/e40460e92adbff07f6890806e12eb444 | |
| # launch: docker-compose up -d | |
| version: "3.7" | |
| services: | |
| validator: | |
| image: quay.io/team-helium/validator:latest-validator-amd64 | |
| container_name: validator | |
| init: true | |
| restart: always | |
| ports: |
| I contributed to the Semaphore Trusted Setup Multi-Party Ceremony. | |
| The following are my contribution signatures: | |
| Circuit: semaphore16 | |
| Contributor # 269 | |
| Hash: 74ecbdb6 4e83b2ba 06b40f2a 13c76b69 | |
| 34c9673e b466bf48 dfd59310 27c136ae | |
| 78a941f2 ae872050 c3bf5ac9 f0e2ee81 | |
| 7b862945 890063e7 7df29f2f bc10f7dd | |