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 exec = require('child_process').exec; | |
| exec('foo bar', {cwd: 'C:¥somewhare'}, function(error, stdout, stderr) { | |
| if (error != null) { | |
| console.log(error); | |
| } | |
| }); |
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
| class IntervalTimer { | |
| enum Status { case STARTED, STOPPED, PAUSED } | |
| var duration: Float = 0.0 | |
| var startTime: Float = 0.0 | |
| var fraction: Float = 0.0 | |
| var isLoop: Bool = false | |
| var status: Status = .STOPPED | |
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
| Serial.print("Hello"); | |
| Serial.println(""); |
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
| find . -name "*.json" -exec sh -c "jq < {}" \; |
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
| curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' \ | |
| -X 'POST' \ | |
| -H 'Content-Type: application/x-www-form-urlencoded' \ | |
| -d 'client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]&grant_type=client_credentials&scope=bucket:create%20bucket:read%20data:write%20data:read' |
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
| (前略) | |
| terminate called after throwing an instance of 'std::bad_alloc' | |
| what(): std::bad_alloc | |
| reading ./mecab-user-dict-seed.20170417.csv ... /home/ubuntu/mecab-ipadic-neologd/bin/../libexec/make-mecab-ipadic-neologd.sh: line 492: 2130 Aborted (core dumped) ${MECAB_LIBEXEC_DIR}/mecab-dict-index -f UTF8 -t UTF8 |
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
| C:\Users\user>pip install nnabla | |
| Collecting nnabla | |
| Using cached nnabla-0.9.2-cp35-cp35m-win_amd64.whl | |
| (中略) | |
| copying skimage\_shared\tests\__init__.py -> build\lib.win-amd64-3.5\skimage\_shared\tests | |
| running build_ext | |
| No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils | |
| customize MSVCCompiler |
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
| #include <stdio.h> | |
| int main(void) | |
| { | |
| printf("%x\n", '\n'); | |
| return 0; | |
| } |
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
| from pythonosc import osc_message_builder | |
| from pythonosc import udp_client | |
| if __name__ == "__main__": | |
| client = udp_client.UDPClient("127.0.0.1", 5005) | |
| msg = osc_message_builder.OscMessageBuilder(address="/my_address") | |
| msg.add_arg(0) | |
| msg = msg.build() |
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
| // Please locate this file as Assets/Editor/GitignoreGenerator.cs | |
| // Then select "Custom" > "Add .gitignore to project root from menu". | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| using UnityEditor; | |
| using System.IO; | |
| using System; | |
| public class GitignoreGenerator : EditorWindow { |