Skip to content

Instantly share code, notes, and snippets.

Adrian Statescu thinkphp

Block or report user

Report or block thinkphp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View curl_php.bash
enabled in php.ini
sudo apt-get install php7.0-curl
sudo /etc/init.d/apache2 restart
View exfat install
sudo apt-get install exfat-fuse exfat-utils
thinkphp / gcloudAppDeploy.bash
Last active Dec 13, 2018
gcloud app deploy
View gcloudAppDeploy.bash app.yaml
gcloud app deploy
thinkphp / find.bash
Created Dec 9, 2018
Find all the files created today with specific extentions.
View find.bash
find . -name "*.cpp" -ctime -1
thinkphp / perm.rb
Created Dec 9, 2018
backtracking in ruby. display the perm
View perm.rb
@n = 3
@stack = [0]*(@n)
def valid(level)
for i in 1..level-1
if @stack[i] == @stack[level]
thinkphp / iteratorCombSort.cpp
Created Dec 6, 2018
ComboSort using vector<int>::iterator, pointer to function and fread for reading from std
View iteratorCombSort.cpp
#include <bits/stdc++.h>
#include <algorithm>
#define FIN ""
#define FOUT "algsort.out"
#define b 1000000
using namespace std;
typedef vector<int>::iterator I;
typedef void (*fnPtr)(vector<int>, I, I);
thinkphp / combosort.cpp
Created Dec 5, 2018
combosort using IO struct
View combosort.cpp
include <bits/stdc++.h>
#define FIN ""
#define FOUT "algsort.out"
#define L 1000000
using namespace std;
struct IO {
char *buff, *p, *s;
thinkphp / parallel.hs
Created Nov 27, 2018
good support for parallel programming
View parallel.hs
ghc file.hs --make -threaded -rtsopts
View javafx
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
public class HelloWorld extends Application {
public void start(Stage primaryStage) throws Exception {
Label label = new Label("Hello World");
class WriteInts
public static void main ( String[] args )
String fileName = "intData.dat" ;
int value0 = 0, value1 = 1, value255 = 255, valueM1 = -1;
You can’t perform that action at this time.