Hello this is my code
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
TARGET="/var/www/my-app.com/html" | |
GIT_DIR="/root/my-app/" | |
DIST="/root/my-app/dist/browser" | |
echo "Pulling the project" | |
cd $GIT_DIR | |
git pull | |
echo "Install Packages" | |
npm 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
const shell = require('shelljs'); | |
const http = require('http'); | |
const createHandler = require('node-gitlab-webhook'); | |
const handler = createHandler([{ | |
path: '/webhook', | |
secret: 'superS3cret' | |
} | |
]); | |
/* |
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
@Module | |
abstract class ActivityBuilder { | |
@ContributesAndroidInjector(modules = [MainActivityModule::class]) | |
abstract fun bindMainActivity(): MainActivity | |
} |
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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.sql.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Stack; | |
public class FormApp extends JFrame implements ActionListener { |
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
try { | |
OleDbConnection connection = new OleDbConnection("provider=microsoft.ace.oledb.12.0;data source=C:\\Users\\Seanghay\\Documents\\Students.accdb"); | |
connection.Open(); | |
OleDbDataAdapter adapter = new OleDbDataAdapter("select * from TableStudent", connection); | |
DataTable table = new DataTable(); | |
adapter.Fill(table); |
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
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
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 android.annotation.SuppressLint; | |
import android.media.MediaCodec; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.media.MediaMetadataRetriever; | |
import android.media.MediaMuxer; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; |
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 PaintView: View, View.OnTouchListener { | |
@ColorInt | |
var penColor: Int = Color.BLACK | |
@ColorInt | |
var paperColor: Int = Color.WHITE | |
var penSize: Int = 16f.dp.toInt() |
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 android.util.Size | |
internal fun picsum(width: Int, height: Int): Picsum = | |
Picsum(Size(width, height)) | |
class Picsum constructor( | |
private var size: Size, | |
private var id: Int? = null, | |
private var blur: Int = 0, | |
private var grayscale: Boolean = false, |
OlderNewer