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 <string> | |
#include <iostream> | |
#include <cstdlib> | |
#include <sstream> | |
#include <FL/Fl.H> | |
#include <FL/fl_draw.H> | |
#include <FL/Fl_Window.H> | |
#include <FL/Fl_Box.H> | |
#include <FL/Fl_Native_File_Chooser.h> |
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 <string> | |
#include <iostream> | |
#include <cstdlib> | |
#include <FL/Fl.H> | |
#include <FL/fl_draw.H> | |
#include <FL/Fl_Window.H> | |
#include <FL/Fl_Box.H> | |
#include <FL/Fl_Native_File_Chooser.h> | |
#include <FL/Fl_Output.H> |
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
<?php | |
function lcwords($str) { | |
$temp = ''; | |
$words = explode(' ', $str); | |
foreach ($words as $word) { | |
$word = ' ' . lcfirst($word); | |
$temp .= $word; |
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
const limit = 100; | |
const sizing = 5000; | |
let visited = []; | |
let left = []; | |
let right = []; | |
let L = [[]]; | |
let G = [[]]; | |
let id = [[]]; | |
const dr = [-1, 1, 0, 0]; | |
const dc = [0, 0, -1, 1]; |
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
const nums = [7, 8, 6, 5]; | |
binaryArray = nums.map((element) => {var decimal = Number(element).toString(2); return (decimal.length == 4 ? decimal : "0" + decimal);}) | |
.sort((left, right) => { | |
var leftDigitCount = (left.match(/1/g) || []).length; | |
var rightDigitCount = (right.match(/1/g) || []).length; | |
return (leftDigitCount == rightDigitCount ? parseInt(left, 2) - parseInt(right, 2) : (leftDigitCount > rightDigitCount) ? 1 : -1) | |
}); |
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
const http = require("https"); | |
const options = { | |
"method": "GET", | |
"hostname": "rapidapi.p.rapidapi.com", | |
"port": null, | |
// "path": "/forecast/daily?q=san%20francisco%2Cus&lat=35&lon=139&cnt=16", | |
"path": "/forecast/daily?q=london%2Cuk&lat=35&lon=139&cnt=16", | |
"headers": { | |
"x-rapidapi-host": "community-open-weather-map.p.rapidapi.com", |
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
package org.pu.javapp.model; | |
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.time.LocalDate; | |
import java.time.format.DateTimeFormatter; | |
import java.util.Locale; | |
import java.io.File; | |
import java.util.stream.Collectors; |
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
CREATE DATABASE TV; | |
use TV; | |
--1 | |
CREATE TABLE TV_CHANNELS | |
( | |
TV_NO char(3) not null primary key, | |
NAME VARCHAR(20) not null | |
) |
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
CREATE TABLE INVOICES | |
( | |
INV_NO char(10) not null, | |
INV_DATE DATE not null, | |
constraint PK_INVOICES primary key (INV_NO) | |
) | |
CREATE TABLE PRODUCTS | |
( | |
PRODUCT_ID int not null, |
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
create database PCT; | |
use PCT; | |
create table REGIONS | |
( | |
REGION_ID smallint not null, | |
NAME varchar(25) not null, | |
constraint PK_REGIONS primary key (REGION_ID) | |
) |
NewerOlder