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
| " quickrun: hook/cygpath: Convert source file path. | |
| " Author: draftcode <draftcode@gmail.com> | |
| " License: zlib License | |
| let s:save_cpo = &cpo | |
| set cpo&vim | |
| let s:hook = { 'config': { 'enable': 0 } } | |
| function! s:hook.on_normalized(session, context) |
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
| " quickrun: hook/virtualenv: Use virtualenv python if available | |
| " Author: draftcode <draftcode@gmail.com> | |
| " License: zlib License | |
| let s:save_cpo = &cpo | |
| set cpo&vim | |
| let s:hook = { | |
| \ 'config': { | |
| \ 'enable': 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
| extern "C" { | |
| #include <X11/Xlib.h> | |
| #include <X11/cursorfont.h> | |
| #include <X11/extensions/Xinerama.h> | |
| } | |
| int main(void) { | |
| Display *display(XOpenDisplay(nullptr)); | |
| if (!display) return 1; |
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
| package com.github.draftcode; | |
| import roboguice.activity.RoboActivity; | |
| import roboguice.inject.InjectExtra; | |
| import android.os.Bundle; | |
| import android.view.Menu; | |
| public class MainActivity extends RoboActivity { | |
| @InjectExtra("test") | |
| String a; |
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
| |- let rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1)))) in ((sum (fun x -> (x * x))) 2) evalto 5 by E-LetRec { | |
| sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] |- ((sum (fun x -> (x * x))) 2) evalto 5 by E-App { | |
| sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] |- (sum (fun x -> (x * x))) evalto (sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] , f = (sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))])[fun x -> (x * x)])[fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1)))] by E-AppRec { | |
| sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] |- sum evalto ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] by E-Var1 { | |
| }; | |
| sum = ()[rec sum = fun f -> (fun n -> if (n < 1) then 0 else ((f n) + ((sum f) (n - 1))))] |- (fu |
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 <iostream> | |
| using namespace std; | |
| struct C; | |
| struct D { | |
| operator C(); | |
| }; | |
| struct C { | |
| C() {} |
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
| Private Sub Worksheet_Change(ByVal Target As Range) | |
| If Target.Column = 1 Or Target.Column = 5 Then | |
| Dim value As String | |
| value = "" & Target.value | |
| If Len(value) = 6 Then | |
| Target.value = "平成" & Int(Mid(value, 1, 2)) & "年" & _ | |
| Int(Mid(value, 3, 2)) & "月" & _ | |
| Int(Mid(value, 5, 2)) & "日" | |
| End If | |
| End If |
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
| (new AsyncTask<Void, Void, Void>() { | |
| protected Void doInBackground(Void... params) { | |
| executeOauth(); | |
| return null; | |
| } | |
| }).execute(); |
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
| require 'formula' | |
| class BinutilsXv6 < Formula | |
| url 'http://ftpmirror.gnu.org/binutils/binutils-2.21.1a.tar.bz2' | |
| mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2' | |
| homepage 'http://www.gnu.org/software/binutils/binutils.html' | |
| md5 'bde820eac53fa3a8d8696667418557ad' | |
| def install | |
| system "./configure", "--target=i386-jos-elf", |
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 Holder { | |
| private int n; | |
| public Holder(int n) { this.n = n; } | |
| public void assertSanity() { | |
| if (n != n) { | |
| throw new AssertionError("This statement is false."); | |
| } | |
| } | |
| } |