const obj1 = {a: 1, b: 2, c: 3};
const obj2 = {c: 4, d: 5};
const obj3 = {
...obj1,
...obj2,
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
import json | |
import time | |
from langchain.chat_models import ChatAnthropic | |
from langchain.schema import HumanMessage | |
FAST = "claude-instant-1" | |
GOOD = "claude-1.3" | |
model = GOOD |
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
import { useState, useEffect } from 'react'; | |
// pass a query like `(min-width: 768px)` | |
export function useMatchMedia(query: string) { | |
const [matches, setMatches] = useState(() => matchMedia(query).matches); | |
useEffect(() => { | |
const mediaQueryList = matchMedia(query); | |
const onChange = (event: MediaQueryListEvent) => setMatches(event.matches); |
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
#!/usr/bin/env node | |
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/ | |
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID | |
// CONFIGURATION ####################################################################################################### | |
const token = 'SLACK TOKEN'; | |
// Legacy tokens are no more supported. | |
// Please create an app or use an existing Slack App |

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
var imgs = new Array; | |
// replace all images by the xxl version | |
$('li > img').each(function(i, item){ | |
var new_src = $(item).prop('src').replace('large', 'xxlarge'); | |
$(item).prop('src', new_src); | |
imgs.push($(item)); | |
}); | |
// kill everything on page | |
$('body').empty(); |
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
"use strict"; | |
/** | |
* Multifield Helper JS Use-api script (for json-based multifield storage) | |
* | |
* @see http://j.mp/29ByR1y [touchui-composite-multifield.js] | |
* | |
* @param mfName node name containing the multifield | |
*/ |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
- A Russian translation of this article can be found here, contributed by Timur Demin.
- A Turkish translation can be found here, contributed by agyild.
- There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
You need to have SketchTool installed somewhere in your path.
Add this in your ~/.gitconfig
file (for some reason, it won't work in a local .gitconfig file):
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
java -jar cq-quickstart-6.0.0.jar -debug 10123 |
NewerOlder