Skip to content

Instantly share code, notes, and snippets.

b = Math.ceil(Math.atan(a - 100) / Math.PI * 0.9);
b = math.ceil(math.atan(a - 100) / math.pi * 2)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>3D Rose(By JS)</title>
</head>
<body>
<canvas id="c"></canvas>
<script>
var b = document.body;
var c = document.getElementsByTagName('canvas')[0];
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <yajl/yajl_tree.h>
#include <yajl/yajl_common.h>
#define LOC_NUM 7
#define JSON_ERR_MSG_LEN 1024
#!/usr/bin/env python3
from itertools import combinations
import json
import requests
locations = {
'长江南路站',
'浦东机场',
'起点单车世纪公园店',
#!/bin/sh
/usr/local/share/npm/bin/splocal -c /Users/013231/code/xwall/ShadowSPDY/config.json
xwall.plist:
<plist version="1.0">
<dict>
<key>Label</key>
<string>xwall</string>
<key>RunAtLoad</key>
<true />
<key>Program</key>
<string>/Users/013231/code/tools/xwall.sh</string>
</dict>