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
Install-Package System.Linq.Queryable -Version 4.3.0 | |
Install-Package WindowsAzure.Storage -Version 8.4.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
import time | |
import NDSPI | |
from NDCore import ConnectLib, NDHTTPLib, PowerLib | |
def main(): | |
try: | |
now = PowerLib.get_time() | |
timestamp = '{0:04d}{1:02d}{2:02d}{3:02d}{4:02d}{5:02d}'.format( | |
now['year']+2000, | |
now['month'], |
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 NDCore import ConnectLib, SMSLib | |
def main(): | |
# ネットワークに接続する | |
print 'Connecting...', | |
ConnectLib.connect() | |
print 'OK' | |
# SMSを送信する | |
phone_number = 'xxxxxxxxxxx' |
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 NDCore import ConnectLib, SMSLib | |
def main(): | |
# ネットワークに接続する | |
print 'Connecting...', | |
ConnectLib.connect() | |
print 'OK' | |
# SMSを送信する | |
phone_number = 'xxxxxxxxxxx' |
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
javascript:(function(){var%20s=document.querySelector(".media-img");if(!s){s=document.querySelector(".media-image");}s=s.src.replace(":small",":large");window.open(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
namespace Sample1 { | |
class Program { | |
static void Main( string[] args ) { | |
Class1 class1 = new Class1(); | |
Console.WriteLine( class1[ DateTime.Now.Second ].ToString() ); | |
} | |
} | |
public class Class1 { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>IDisposable Implementation</Title> | |
<Shortcut>idisp</Shortcut> | |
<Description> | |
How Dispose(bool) should be implemented in a class that uses managed | |
and native resources. | |
</Description> |
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
$.ajax( { | |
type: "GET", | |
url: "/command.cgi?op=190&CTRL=0x1f&DATA=" + value, | |
cache: true, | |
dataType: "json", | |
timeout: 3000, | |
beforeSend: function( jqXHR, settings ) { | |
jqXHR.setRequestHeader( "If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT" ); | |
} | |
} ).done( function( data, textStatus, jqXHR ) { |
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
module DrawCircle( | |
input CLOCK, | |
input nRESET, | |
input START, | |
input signed [11:0] X0, | |
input signed [10:0] Y0, | |
input signed [11:0] R, | |
input FILL, | |
output signed [11:0] X, | |
output signed [10:0] Y, |
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
#define message NYA! | |
// Preprocessor magic! | |
#define _STRING(str) #str | |
#define STRING(str) _STRING(str) | |
int main(void) { | |
printf( "%s\n", STRING( message ) ); | |
return 0; | |
} |