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 <iostream> | |
#include <fstream> | |
#include <string.h> | |
using namespace std; | |
int cmp_char_arr(const char* a, const char* b, int size_a, int size_b) { | |
int min_size = size_a < size_b ? size_a : size_b; | |
for (int i = 0; i < min_size; i++) { |
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 android.app; | |
public abstract class Activity { | |
private View mView; | |
protected onCreate() { | |
/* bla bla */ | |
} |
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
#!/bin/bash | |
ffmpeg -i $1 -r 10 /tmp/to_gif_%05d.png &> /dev/null | |
convert /tmp/to_gif_*.png $2 &> /dev/null | |
rm /tmp/to_gif_*.png &> /dev/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
; function WspNewtonaRek( n, k : integer ) : integer; | |
; begin | |
; if (k = 0) or (k = n) then | |
; WspNewtonaRek := 1 | |
; else | |
; WspNewtonaRek := WspNewtonaRek( n-1, k-1 ) + WspNewtonaRek( n-1, k ); | |
; end; | |
; | |
; | |
; function newton(n, k){ |
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
; function WspNewtonaRek( n, k : integer ) : integer; | |
; begin | |
; if (k = 0) or (k = n) then | |
; WspNewtonaRek := 1 | |
; else | |
; WspNewtonaRek := WspNewtonaRek( n-1, k-1 ) + WspNewtonaRek( n-1, k ); | |
; end; | |
; | |
; | |
; function newton(n, k){ |
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
class Stack { | |
constructor() { | |
this.arr = []; | |
} | |
pull() { | |
return this.arr.pop(); | |
} | |
peek(){ | |
return this.arr.slice(-1)[0]; |
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 | |
global $actions; | |
$actions = []; | |
function add_action($action, $call, $priority = 10){ | |
global $actions; | |
if(!isset($actions[$action])){ | |
$actions[$action] = []; | |
} | |
$actions[$action][] = compact('call', 'priority'); |
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
import entity.*; | |
import okhttp3.*; | |
import retrofit2.Retrofit; | |
import retrofit2.converter.jackson.JacksonConverterFactory; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.Proxy; | |
import java.util.ArrayList; |
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 com.laboratories.bregula.myapplication; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import java.util.List; |
OlderNewer