made with esnextbin
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
typedef struct { | |
char type; | |
const char *desc; | |
char fmt; | |
void *ptr; | |
} SaveTable; | |
struct { | |
Group g; | |
EntityBase e; |
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
#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 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 |
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
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 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
iwconfig | |
IWCONFIG(8) Linux Programmer’s Manual IWCONFIG(8) | |
NAME |
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
<?php | |
namespace Spatial; | |
use CrEOF\Spatial\DBAL\Types\BinaryParser; | |
use CrEOF\Spatial\PHP\Types\Geometry\LineString; | |
use CrEOF\Spatial\PHP\Types\Geometry\Point; | |
class GeometryParser { |
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
<?php | |
/** | |
* Pluck an array of values from an array. | |
* | |
* @param array $array | |
* @param string $value | |
* @param string $key | |
* @return array | |
*/ | |
function array_pluck($array, $value = null, $key = null) |
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
alias gds='dir=`pwd`; for f in `ls -d */`; do echo "\nRunning git status for: $f" && cd $dir/$f && git --no-pager status; done; cd $dir' | |
alias gdd='dir=`pwd`; for f in `ls -d */`; do echo "\nRunning git diff for: $f" && cd $dir/$f && git --no-pager diff; done; cd $dir' |
NewerOlder