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
@Override protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
final TextView text = (TextView)findViewById(R.id.helloText); | |
final Button button = (Button)findViewById(R.id.helloButton); | |
button.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
text.setText("Hello World!"); | |
} |
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
final TextView text = (TextView)findViewById(R.id.helloText); | |
final Button button = (Button)findViewById(R.id.helloButton); |
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
#include <stdio.h> | |
#define MAIN int main(){puts("Hello World");return 0;} | |
MAIN |
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
#define TEST_STRING "Hello World!" | |
char* test_string = TEST_STRING; |
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
#define NAME VALUE | |
const variable_type NAME VALUE; |
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
data = {} | |
data["extend"] = function (data, t) | |
for n, recipe in ipairs(t) do | |
for i, component in ipairs(recipe["ingredients"]) do | |
cname = component[1] or component["name"] | |
camt = component[2] or component["amount"] | |
print('"' .. recipe["name"] .. '","' .. cname .. '",' .. camt) | |
end | |
end | |
end |
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
colorscheme desert | |
let mapleader="." | |
nnoremap . <nop> | |
nnoremap <leader>rc :vsplit $MYVIMRC<cr> | |
nnoremap <leader>" /(<cr>Na"<esc>/)<cr>s")<esc> | |
set shortmess=at | |
set cmdheight=1 | |
inoremap kl <esc> | |
nnoremap t V> | |
nnoremap T V< |
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
""" | |
Example of using py_cui to create a simple Command line TODO list in under 150 lines of code | |
@author: Jakub Wlodek, Ellis Wright (telday) | |
@created: 12-Aug-2019 | |
""" | |
import py_cui | |
import os |
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
echo off | |
if "%1" == "" GOTO fail | |
python -m pydoc %1 > %1.txt | |
vim %1.txt | |
rm %1.txt | |
goto end | |
:fail | |
echo This program requires the name of a module as the argument | |
:end |
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
html_static_path = ['_static'] | |
html_css_files = ['no_boxes.css'] |
OlderNewer