Skip to content

Instantly share code, notes, and snippets.

@dozzman
dozzman / deepseek-r1-14b-out.txt
Created January 29, 2025 22:35
Deepseek-R1 (14B) gets a little confused
>>> differentiate cos(e^(x^2))
<think>
Okay, so I need to differentiate the function cos(e^(x²)). Hmm, that sounds like a chain rule problem. Let me try to remember how the chain rule
works. From what I recall, if you have a composite function, say f(g(x)), then the derivative is f'(g(x)) * g'(x). So in this case, my outer function
is cos(u), where u is e^(x²).
Alright, so let's break it down step by step. First, I'll consider the outer function, which is cosine of something. The derivative of cos(u) with
respect to u is -sin(u). So that part would be straightforward: if I have cos(e^(x²)), its derivative should start with -sin(e^(x²)).
But wait, I'm not done yet because there's also the inner function e^(x²) which needs to be differentiated. That means I need to apply the chain rule
@dozzman
dozzman / unstable_deps
Created May 22, 2016 00:14
Output of `npm ls` in the `UNSTABLE` parse 2.2.7 server directory
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
@dozzman
dozzman / stable_deps
Last active May 22, 2016 00:15
Output of `npm ls` in the `STABLE` parse 2.2.7 server directory
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
#! /bin/bash
wget -O - http://debian.hyperdex.org/hyperdex.gpg.key | apt-key add -
cat >> /etc/apt/sources.list.d/hyperdex.list << EOF
deb [arch=amd64] http://debian.hyperdex.org wheezy main
EOF
apt-get update
apt-get install -y hyperdex java-hyperdex-client python-hyperdex-admin python-hyperdex-client
@dozzman
dozzman / AppDelegate.swift
Created August 21, 2015 13:53
AppDelegate with push notifications implemented
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, GGLInstanceIDDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// register for push notifications
var types = UIUserNotificationType.Alert | UIUserNotificationType.Sound | UIUserNotificationType.Badge
var settings = UIUserNotificationSettings(forTypes: types, categories: nil)
@dozzman
dozzman / gist:4fd1d10effc1ee65db56
Created January 23, 2015 16:12
Working Nexmo Number Callback Change
using System;
using System.Net;
public class HelloWorld
{
static public void Main ()
{
string api_key = "xxxxx";
string api_secret = "xxxxx";
string country = "xx";