Skip to content

Instantly share code, notes, and snippets.

sudo pmset -a disablesleep 0
@terragona
terragona / jasmine.usp
Created December 23, 2024 10:06 — forked from AndreSteenveld/jasmine.usp
Clone of jasmine json parser for crestron SIMP+
//
// Author: Andre Steenveld (andre.steenveld-at-gmail.com)
//
// Summary:
// This is an adopted copy of the jasmine JSON parser for SIMPL+ so that it works on crestron machines.
// Jasmine was orginally written in C and can be found at: https://github.com/zserge/jsmn
//
// Full license text:
// MIT License
//
import numpy as np
import os
import time
import warnings
import pickle
# from accimage import Image
from PIL import Image
import io
try:
<!--
The MIT License (MIT)
Copyright (c) 2015 tibyte.kr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@terragona
terragona / ohi.js
Created August 27, 2018 03:12 — forked from wkpark/ohi.js
Oline Hangul Input method by Ho-Seok Ee
/*
* Author : Ho-Seok Ee <hsee@korea.ac.kr>
* Release: 2006/07/14
* Update : 2011/01/22
Copyright (C) Ho-Seok Ee <hsee@korea.ac.kr>. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
@terragona
terragona / FitCurves.js
Created July 24, 2018 04:47 — forked from ynakajima/FitCurves.js
ポリラインをベジェ曲線で近似するアルゴリズムの実装 C言語版からJavaScriptへ移植
/**
* FitCurves.js - Piecewise cubic fitting code
*
* original: FitCurves.c
* http://tog.acm.org/resources/GraphicsGems/gems/FitCurves.c
*
* ported by ynakajima (https://github.com/ynakajima).
*
* THIS SOURCE CODE IS PUBLIC DOMAIN, and
* is freely available to the entire computer graphics community
@terragona
terragona / index.html
Created July 12, 2018 09:28 — forked from lehni/index.html
Paper.js Bézier Offsetting
<!DOCTYPE html>
<html>
<head>
<!--
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@terragona
terragona / pdf2img.html
Created March 16, 2018 06:51 — forked from jdeng/pdf2img.html
pdf to image using pdf.js
<html>
<body>
<script type="text/javascript" src="//mozilla.github.io/pdf.js/build/pdf.js"></script>
<script type="text/javascript">
var url = "https://docs.google.com/document/export?format=pdf&id=1ML11ZyyMpnAr6clIAwWrXD53pQgNR-DppMYwt9XvE6s&token=AC4w5Vg7fSWH1Hq0SgNckx4YCvnGPaScyw%3A1423618416864";
var pages = [], heights = [], width = 0, height = 0, currentPage = 1;
var scale = 1.5;
function draw() {
@terragona
terragona / TensorFlow 시작하기.md
Created November 23, 2017 08:51 — forked from haje01/TensorFlow 시작하기.md
TensorFlow 시작하기

텐서플로우 시작하기

글쓴이: 김정주(haje01@gmail.com)

이 문서는 텐서플로우 공식 페이지 내용을 바탕으로 만들어졌습니다.


소개

텐서플로우(TensorFlow)는 기계 학습과 딥러닝을 위해 구글에서 만든 오픈소스 라이브러리입니다. 데이터 플로우 그래프(Data Flow Graph) 방식을 사용하였습니다.