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
[ | |
{ | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
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
// inspiration: https://dribbble.com/shots/4370657-Share-Your-Feedback | |
import React, { Component, Fragment } from "react"; | |
import { Animated, StyleSheet, Text, View, TouchableOpacity, Dimensions, Platform, Easing, TextInput, KeyboardAvoidingView, Image } from "react-native"; | |
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'; | |
const { width: windowWidth } = Dimensions.get('window'); | |
const Icon = (props) => <FontAwesome5 {...props} /> |
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
server { | |
listen 80 default deferred; | |
server_name laravel-application.com; | |
# http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log | |
access_log /var/www/laravel-app/access.log; | |
error_log /var/www/laravel-app/error.log; | |
root /var/www/laravel-app/public/; |
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
<?php | |
use Ratchet\Server\IoServer; | |
use MyApp\Chat; // Your own class to handle websocket message | |
use Ratchet\Http\HttpServer; | |
use Ratchet\WebSocket\WsServer; | |
require dirname(__DIR__) . '/vendor/autoload.php'; | |
$server = IoServer::factory( |
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
<div id="htmlcontainer" [innerHTML]="myTemplate"></div> |
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
drop user darkogl_developer; | |
create role group_darkogl_support; | |
CREATE USER darkogl_support | |
with | |
NOSUPERUSER | |
NOCREATEDB | |
NOCREATEROLE | |
PASSWORD 'glsupport'; |
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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Cookie; | |
use Illuminate\Support\Facades\Mail; | |
use Illuminate\Support\Facades\Session; | |
use Ratchet\WebSocket\Version\RFC6455\Connection; |
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
CREATE OR REPLACE FUNCTION sch_p000.migrate_schema_table(p_to_schema character varying) | |
RETURNS boolean | |
LANGUAGE plpgsql | |
AS $function$DECLARE | |
v_query CHARACTER VARYING; | |
v_seq CHARACTER VARYING; | |
v_table CHARACTER VARYING; | |
v_col CHARACTER VARYING; | |
v_col_def CHARACTER VARYING; | |
v_routine CHARACTER VARYING; |
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
// #1 | |
const fs = require('fs'); | |
const input = fs.readFileSync(0, 'utf8').trim().split('\n'); | |
let currentline = 0; | |
function readline(){ | |
return input[currentline++]; | |
} |
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
const fs = require('fs'); | |
const input = fs.readFileSync('./1RB.txt', 'utf8').trim().split('\n'); | |
let currentline = 0; | |
function readline(){ | |
return input[currentline++]; | |
} | |
let T = readline(); |