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
const fs = require('fs') | |
const PDFLib = require('pdf-lib') | |
const filepath = './220812_竣工図/220812_AUO_竣工図整理.pdf' | |
const PDFDocument = PDFLib.PDFDocument | |
const productionDwgFilePaths = [ | |
'../08_issued/SETUP/220713/220713_SDR-2_commented.pdf', | |
'../08_issued/SETUP/220714/220714_F4-3_commented.pdf', | |
'../08_issued/SETUP/220722/220722_AUO_元赤坂建具図_0721_commented.pdf', | |
] |
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
const { Client } = require("@notionhq/client") | |
const fs = require('fs') | |
const path = require( 'path' ) | |
const parse = require('url').parse | |
const request = require( 'request' ) | |
// Initializing a client | |
const download = (uri, filename, callback) => { | |
request.head(uri, (err, res, body) => { | |
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback); |
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 re | |
import bpy | |
iteration_items = [] | |
for item in bpy.data.objects: | |
if 'Block__Iteration' in item.name_full: | |
iteration_items.append(item) | |
prev_name = None | |
frame_index = -1 | |
for j in range(50): |
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 FindProxyForURL(url, host) { | |
PROXY = "PROXY 127.0.0.1:1234"; | |
alert(url); | |
if (shExpMatch(host, "*.alp-official.jp") ) { | |
// if ( shExpMatch(url, "*/js/*") ) { | |
return PROXY; | |
// } |
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 ghpythonlib.treehelpers as th | |
x = th.tree_to_list(x) | |
layerTree = th.list_to_tree(layerTree, source=[0,0]) |
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 bash | |
dir="$(dirname "$1")" | |
base=$(basename "$1" | cut -d. -f1) | |
out="$dir/$base-%d03.jpg" | |
convert "$1" -crop 2x2@ +repage +adjoin "$out" |
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
cd /Applications/Rhinoceros.app/Contents/Frameworks/RhCore.framework/Versions/A/Resources | |
mkbundle --simple -o yak yak.exe | |
ln -s /Applications/Rhinoceros.app/Contents/Frameworks/RhCore.framework/Versions/A/Resources/yak /usr/local/bin/yak |
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 fs = require( 'fs' ) | |
var struggle = fs.readFileSync( __dirname + '/struggle.txt', 'utf-8' ) | |
console.log( mirror(struggle, 45, true ) ); | |
console.log( '--------------------' ); | |
console.log( mirror(struggle, 90, false ) ); | |
function mirror( str, gap, keep ) { | |
var lines = str.split( '\n' ) |
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 p = document.createElement('p'); | |
var prefixes = ['webkit','Moz','ms','O']; | |
var len = prefixes.length; | |
var style = p.style; | |
p = null; | |
module.exports = prefix; | |
function prefix(prop) { | |
for (i = 0; i < len; i++) { |
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
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofBackground(255); | |
ofEnableSmoothing(); | |
layoutPoints(); | |
} |
NewerOlder