Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout masterFetch the remote, bringing the branches and their commits from the remote repository.
You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master.
| nordvpn login | |
| nordvpn account | |
| nordvpn settings | |
| nordvpn status | |
| nordvpn set analytics off | |
| nordvpn set killswitch on | |
| nordvpn set autoconnect on | |
| nordvpn set threatprotectionlite on |
| /*jslint devel: true, browser: true, es5: true */ | |
| /*global Promise */ | |
| function imgLoad(url) { | |
| 'use strict'; | |
| // Create new promise with the Promise() constructor; | |
| // This has as its argument a function with two parameters, resolve and reject | |
| return new Promise(function (resolve, reject) { | |
| // Standard XHR to load an image | |
| var request = new XMLHttpRequest(); |
Linus Torvalds in an interview talked about the idea of good taste in code or what I like to call elegance. As one might expect from two slides meant to make a point during a talk, he omits a lot of details to keep it short and simple. This post digs into the specifics of his example (deleting an element from a list) and adds another example (inserting an element in a list) including working code.
This is an example of removing an element from a singly-linked list. It's one of the first data structures you learn about when you start learning about computer science and programming. The reason it doesn't show particularly good taste is because we have that condition at the end where we take a different action depending on whether the element we want to remove is at the beginning of the list or somewhere in the middle.
:") || | |
| "https://bsky.social", | |
| }); | |
| await userAgent.login({ | |
| identifier: prompt("Handle:")!, | |
| password: prompt("Password:")!, |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| import { | |
| AppBskyEmbedVideo, | |
| AppBskyVideoDefs, | |
| AtpAgent, | |
| BlobRef, | |
| } from "npm:@atproto/api"; | |
| const userAgent = new AtpAgent({ | |
| service: prompt("Service URL (default: https://bsky.social):") || | |
| "https://bsky.social", |
| sudo dnf up[grade] | |
| # View repo list | |
| dnf -v repolist --enabled [| grep Repo-baseurl] | |
| # RPM Fusion repos (free and non-free) | |
| sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
| # On Fedora, we default to use the openh264 library, so you need the repository to be explicitely enabled | |
| sudo dnf config-manager --enable fedora-cisco-openh264 |