made with esnextbin
This file contains hidden or 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
typedef struct { | |
char type; | |
const char *desc; | |
char fmt; | |
void *ptr; | |
} SaveTable; | |
struct { | |
Group g; | |
EntityBase e; |
This file contains hidden or 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
#ifndef SOLVESPACE_SKETCH_H | |
#define SOLVESPACE_SKETCH_H | |
#include <stdexcept> | |
#include "data.h" | |
#include "idlist.h" | |
#include "group.h" | |
#include "vector.h" | |
#include "quaternion.h" |
This file contains hidden or 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
function safeRun(code: string) { | |
const safeCode = `(function () { try { ${code} | |
} catch (err) { | |
function errorToPretty (err) { | |
var stack = $.stack.split('\\n') | |
stack.shift() | |
stack.pop() | |
stack.pop() | |
var lines = (err.source && err.source.split('\\n')) || [] | |
err.line--; |
This file contains hidden or 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
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css">.ritz .waffle a { color: inherit; }.ritz .waffle .s11{border-bottom:1px DOUBLE #000000;border-right:1px DOUBLE #000000;text-align:right;color:#000000;background-color:#ccffcc;font-family:Verdana;font-size:10pt;vertical-align:bottom;white-space:nowrap;direction:ltr;padding:0px 3px 0px 3px;}.ritz .waffle .s1{border-bottom:1px DOUBLE #000000;border-right:1px DOUBLE #000000;text-align:center;font-weight:bold;color:#000000;background-color:#fffaec;font-family:Verdana;font-size:10pt;vertical-align:bottom;white-space:nowrap;direction:ltr;padding:0px 3px 0px 3px;}.ritz .waffle .s9{border-bottom:1px DOUBLE #000000;border-right:1px DOUBLE #000000;text-align:right;color:#000000;background-color:#ffff99;font-family:Verdana;font-size:10pt;vertical-align:bottom;white-space:nowrap;direction:ltr;padding:0px 3px 0px 3px;}.ritz .waffle .s12{border-bottom:1px DOUBLE #000000;border-right:1px DOUBLE #000000;text-align:center;color:#000000;b |
This file contains hidden or 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
test | ing | it | out | |
---|---|---|---|---|
4 | 3 | 2 | 1 | |
1 | 2 | 3 | 4 | |
2 | 2 | 3 | 5 | |
7 | 7 | 5 | 2 |
This file contains hidden or 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
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
a | b | c | d | e |
This file contains hidden or 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
#!/bin/sh | |
find -mindepth 1 -maxdepth 1 -type d | while read -r dir; do cd $dir && printf "\n$dir\n++++++++++++++++++++++++++n\n"; $@; cd ..; done |
This file contains hidden or 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'; | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | |
var _nodeFetch = require('node-fetch'); | |
var _nodeFetch2 = _interopRequireDefault(_nodeFetch); | |
var _xml2js = require('xml2js'); |
This file contains hidden or 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
# install wine 1.7 | |
add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
# download steam | |
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe | |
# install some tricks | |
winetricks vcrun2010 |
NewerOlder