{{ message }}

Instantly share code, notes, and snippets.

StanislavaStaniTr

• Bulgaria
Created May 26, 2014
View gist:c0785faaba48ccf19b52
 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import javax.swing.text.StyledEditorKit.ForegroundAction; public class Problem1 {
Created Jul 9, 2014
View Print_Words_In_One_Column
 using System; using System.Collections.Generic; using System.IO; using System.Text; class Program { static void Main() { //The program reads the content of a text file and write its words into one column in a new file.
Created Jul 14, 2014
View Circle Area
 //function calcSircleArea(r) - func with parameter r (radius) function calcCircleArea(r){ //area var area=Math.PI*r*r; return area; //console.log(arguments); --prints arguments of the function }
Last active Aug 29, 2015
View gist:8e2188328eb26c9d8fc1
 //Функция, която да превръща kw в hp (конски сили) //Вариант 1 function convert_v1(kw_v1){ var hp_v1=Math.round((kw_v1/0.746)*100)/100; return hp_v1; } console.log("Вариант3"); console.log(convert_v1(75)); console.log(convert_v1(150));
Created Sep 1, 2014
View Task 03 Article Parser, PHP Basic Exam 29 July Morning
 func. "articles" => \$match1=topic; \$match2=author; \$realMonth=month; \$print=article summary \$text=\$_GET['text']; function articles(\$matches){ // \$print contains article summary if (strlen(\$matches[4])>100){ \$str=substr((trim(\$matches[4])),0,100); \$print=htmlspecialchars(\$str)."..."; }else{
Last active Aug 29, 2015
View gist:0809cca28e4283149eaf
 import java.util.Scanner; public class Exam_Problem1_DozenEggs { public static void main(String[] args) { //keeps num of eggs int eggs=0; //keeps num of dozens;
Created Sep 9, 2014
View 01_DozenEggs
 import java.util.Scanner; public class Exam_Task1 { public static void main(String[] args) { //keeps num of eggs int eggs=0; //keeps num of dozens;
Last active Aug 29, 2015