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 schedule = require('node-schedule'); | |
const { RTMClient, WebClient } = require('@slack/client'); | |
var weather = require('weather-js'); | |
const token = '<#YOUR-SLACK-TOKEN#>'; | |
const rtm = new RTMClient(token); | |
const web = new WebClient(token); | |
rtm.start(); | |
var sendMessage = function(text, ch) { |
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 dependencies | |
sudo apt-get install subversion g++ zlib1g-dev build-essential git python | |
sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget | |
sudo apt-get install binutils bzip2 flex perl make libz3-dev | |
#clone nodogsplash | |
git clone https://github.com/nodogsplash/nodogsplash/ | |
cd ./nodogsplash | |
# 원하는 버전으로 checkout |
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 TEST_ANDROID_LOG_H | |
#define TEST_ANDROID_LOG_H | |
#include <android/log.h> | |
#define LOG_TAG "NDK_TEST" | |
#define LOGUNK(...) Log::unk( __func__ , Log::toString(__VA_ARGS__)) | |
#define LOGDEF(...) Log::def( __func__ , Log::toString(__VA_ARGS__)) | |
#define LOGV(...) Log::v(__func__ , Log::toString(__VA_ARGS__)) | |
#define LOGD(...) Log::d(__func__ , Log::toString(__VA_ARGS__)) |
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
class A { | |
public: | |
virtual ~A() = default; | |
virtual void print()=0; | |
}; | |
class B : public virtual A { | |
public: | |
virtual ~B() = default; | |
virtual void printB()=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 python | |
# -*- coding: utf8 -*- | |
# The MIT License (MIT) | |
# Copyright (C) 2016 rajephon<[email protected]> | |
# 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 furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
// | |
// simple-calculator-in-c.cpp | |
// simple-calculator-in-c | |
/* | |
MIT License | |
Copyright (c) 2016 Chanwoo Noh [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
A simple standalone script to test an Apple Push Notification setup. | |
Uses the feedback packets to provide the best information on how to fix things. | |
Steps to send a push notification: |