Skip to content

Instantly share code, notes, and snippets.

View zilton7's full-sized avatar

Zil Norvilis zilton7

View GitHub Profile
@zilton7
zilton7 / main.dart
Created September 27, 2023 14:10
swift-hyacinth-7985
void main(){
var person = Person('Zil', 'Norvilis');
person.printName();
}
class Person {
String firstName = '';
String lastName = '';
@zilton7
zilton7 / controller.rb
Last active December 30, 2021 23:33
controller.rb
def create
...
respond_to do |format|
if verify_recaptcha(model: @post) && @post.save
format.html { redirect_to @post, notice: "Post was successfully created." }
else
format.html { render :new, status: :unprocessable_entity }
end
end
end
@zilton7
zilton7 / packages.json
Last active May 31, 2021 11:57
packages.json example
...
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack serve --mode development",
"build": "webpack --mode development"
},
...
@zilton7
zilton7 / gist:dffde146ac9bad485c94c984aea58112
Last active May 31, 2021 11:44
example-webpack.config.js
const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, './'),
},
module: {