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 <stdio.h> | |
#include "sqlite3.h" | |
int main() | |
{ | |
const char filename[] = "Atm.db"; | |
sqlite3 *dbHandle; | |
const char sql[] = "SELECT * FROM User;"; | |
sqlite3_stmt *ppStmt; |
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 importlib | |
import pkgutil | |
import os | |
# Uses the package as the directory to search for plugins | |
plugin_directory=os.path.dirname(__file__) | |
# Loads all of the modules in this package | |
for module in pkgutil.iter_modules([plugin_directory]): | |
name_index=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
// Angular 2: Configuring LoginService | |
@Injectable() class LoginService { | |
constructor(@Inject("LoginServiceConfig") public config: {url: string}) {} | |
//... | |
} | |
@Component({ | |
selector: 'app', | |
template: `<login></login>`, |
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
global atoi | |
section .text | |
atoi: | |
mov rax, 0 ; Set initial total to 0 | |
convert: | |
movzx rsi, byte [rdi] ; Get the current character | |
test rsi, rsi ; Check for \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
\ProvidesClass{SimpleResume}[2017/03/18 Simple Resume Class] | |
\LoadClass[11pt,letterpaper]{article} | |
\usepackage[letterpaper,margin=0.75in]{geometry} | |
\usepackage{enumitem} | |
\setlist{nolistsep} | |
\newcommand{\contact}[5]{ | |
\centerline{\LARGE\textbf{#1}} | |
\centerline{#2 -- #3} |
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
{ | |
"data": { | |
"name": "Telnyx", | |
"gateways": [ | |
{ | |
"server": "sip.telnyx.com", | |
"channel_selection": "ascending", | |
"enabled": true, | |
"endpoint_type": "sip", | |
"force_port": false, |
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
"use strict"; | |
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
function asyncHandler(fn) { | |
return function(req, res, next) { | |
Promise | |
.resolve(fn(req, res, next)) |