Skip to content

Instantly share code, notes, and snippets.

window.onload = function ()
{
var print = Function("stringArg","document.write(stringArg)");
var println = Function("stringArg","document.write(stringArg+'<br>')");
var $int = Function("n","try{n = new Number(n);b = new Boolean(false);if( b !== n.isNaN ){Error.prototype.notInt = null;e = new Error();e.notInt = 'Invalid Type Error : ';document.body.innerText = e.notInt;}}catch(e){e.notInt;}return n");
document.write( $int(10) );
//document.write( $int('a') );
}
using System;
//To work : like a Class and that hidden by System.
delegate void GataMethod(); // Class declarationa
//a class Including some method, It was send throw the Gata.
class MehtodHolder //Sender
{
public void SomeMethod()
@LilinYume
LilinYume / EOFprop.cs
Created May 15, 2013 02:11
EOFを取るプロパティ
using System;
using System.IO;
class prop
{
public bool EOF {
get{
io s = new io();
return s.streamFile();
}
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdexcept>
#include <cstdlib>
#include <cstring>
//---------------------------------------------------------
CXX = g++
INCEDIR = -I/usr/local/include
LIBDIR = -L/usr/local/lib
LIBS = -lfltk -lX11 -lXext -lXft -lfontconfig -lm -ldl
all:
@($(CXX) *.cpp $(INCEDIR) $(LIBDIR) $(LIBS))
clean:
rm -f *.o
#include "read_number.h"
int read_number(void)
{
char c;
int n;
int m;
int fail;
n = 0;
aiueo
#!/bin/bash
def_name="$PWD/main.c"
file_name=''
flag=0
reply=''
if [ -f $def_name ]; then
gcc $def_name
else
#include <ios>
#include <iostream>
#include <stdexcept>
#include <new>
#include <locale>
#define CHAR_SIZE 1
#define WCHAR_SIZE 2
/* 概要:
#include <iostream>
#include <fstream>
using namespace std;
//---------------------------------------------------
// 空のファイルか判定
//---------------------------------------------------
bool empty_file( std::fstream& fs );
//---------------------------------------------------