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
#!/usr/bin/env python | |
import paho.mqtt.client as mqtt | |
def on_connect(client, data, flags, rc): | |
#print ("Connected with rc: " + str(rc)) | |
client.subscribe("/test1") | |
def on_message(client, obj, msg): |
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
var Twit = require('twit'); //This is import statement. | |
var config = require('./config'); | |
var T = new Twit(config); | |
var stream = T.stream('user'); | |
stream.on('follow',followed); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script | |
src="https://code.jquery.com/jquery-3.1.1.js" | |
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" | |
crossorigin="anonymous"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { |
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 <wiringPi.h> | |
#include <stdio.h> | |
int main (int k, char *argv[]) | |
{ | |
wiringPiSetup () ; | |
pinMode (29, OUTPUT) ; | |
pinMode (3, OUTPUT) ; | |
pinMode (4, OUTPUT) ; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace matris | |
{ | |
class Program | |
{ |
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> | |
int main() | |
{ | |
int sa; | |
int su; | |
sa = 3; | |
su = 3; | |
int matris[sa][su]; | |
for (int i = 0; i < sa; i++) |
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
% GAUSS ELIMINASYON YÖNTEMI ILE Ax=B LINEER ESITLIGININ CÖZÜLMESI | |
% pivotlama kullanýlýyor | |
% A matrisi N*N boyutunda tekil olmayan katsayýlar matrisidir. | |
% B matrisi N*1 boyutundadýr | |
% x matrisi N*1 boyutunda çözüm matrisidir | |
% x matrisinin eleman degerleri baslangýçta sýfýr alýnmaktadýr | |
% C matrisi program içinde geçici olarak kullanýlmaktadýr | |
% A=[1 -2 4 -3;2 1 5 2;-6 2 1 4; 1 -2 8 4]; B=[1 ; 3; -1; 5] | |
A=[2 -3 2;1 1 -2;3 -2 -1]; B=[-11 ; 8; -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
/** | |
* @author iscalik | |
* | |
*/ | |
public class Yigin { | |
public int kapasite = 100; | |
public int S[]; | |
int p; | |
public Yigin(){ |
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 java.util.Scanner; | |
import java.util.Stack; | |
public class PostfixConverter { | |
private static Scanner sc; | |
private boolean isOperator(char c) { | |
if (c == '+' || c == '-' || c == '*' || c == '/' || c == '^') | |
return true; | |
return 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
// doublyLinked.java | |
// demonstrates doubly-linked list | |
// to run this program: C>java DoublyLinkedApp | |
//////////////////////////////////////////////////////////////// | |
class Link { | |
public long dData; // data item | |
public Link next; // next link in list | |
public Link previous; // previous link in list | |
// ------------------------------------------------------------- |