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
| [INFO] (csgtool.c:18) Loaded file: ./cube.stl 12 facets | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:76) bsp_build(12): 2 COPLANAR, 0 front, 10 back | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:86) Building back of 0x7fb700c03920->0x0 | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:76) bsp_build(10): 2 COPLANAR, 0 front, 8 back | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:86) Building back of 0x7fb700c04c10->0x0 | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:76) bsp_build(8): 2 COPLANAR, 0 front, 6 back | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:86) Building back of 0x7fb700c04e90->0x0 | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:76) bsp_build(6): 2 COPLANAR, 0 front, 4 back | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:86) Building back of 0x7fb700c050f0->0x0 | |
| [INFO] (/Users/yshirokov/src/social/csgtool/src/bsp.c:76) bsp_build(4): 2 COPLANAR, 0 front, 2 back |
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
| flip: chainable () => | |
| @normal.multiplyScalar -1 | |
| @w *= -1 | |
| @vertices.reverse() |
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
| (defadvice erc-server-send-ping (around dont-choke-on-bad-timer first nil activate) | |
| (ignore-errors | |
| ad-do-it)) |
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
| New tests for everyon! |
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
| Wutwut? |
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
| var buff = new Buffer("aahelloaa"); | |
| for(var i = 0; i < 10000000; i++) { | |
| var str = buff.slice(2, 7 + Math.round(Math.random())).toString(); | |
| } |
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
| angular.module('gitstats').controller "NavCtrl", ['$scope', '$route', | |
| class NavCtrl | |
| constructor: (@scope, @route) -> | |
| route_to_nav = (path, route) => | |
| return if route.redirectTo? | |
| return unless route.name? | |
| current_route_name = () => @route.current?.$route?.name | |
| path: path | |
| name: route.name | |
| classes: -> |
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
| compute_rate: -> | |
| ['messages', 'bytes'].forEach (total_type) => | |
| { | |
| last: @counts[total_type].last, | |
| rate: @counts[total_type].rate | |
| } = | |
| { | |
| last: @counts[total_type].total, | |
| rate: @counts[total_type].total - @counts[total_type].last | |
| } |
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
| (defun 8k-with-stream () | |
| (let ((s (make-string-output-stream))) | |
| (dotimes (i (* 1024 8)) | |
| (write-char (rand-char) s)) | |
| (prog1 (get-output-stream-string s) | |
| (close s)))) |
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
| (ql:quickload :alexandria) | |
| (use-package :alexandria) | |
| (defmacro rand-char () | |
| '(code-char (+ (random (- (char-code #\z) (char-code #\a))) (char-code #\a)))) | |
| (defun 8k-with-concatenate () | |
| (let ((s (string ""))) | |
| (dotimes (i (* 1024 8)) | |
| (setf s (concatenate 'string s (list (rand-char))))) |