Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home. let's drink ☕️

Abdul Fattah Ikhsan ikhsanalatsary

🏠
Working from home. let's drink ☕️
Block or report user

Report or block ikhsanalatsary

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
@ikhsanalatsary
ikhsanalatsary / app.css
Last active Jan 28, 2020
Table template
View app.css
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 40px;
margin-bottom: 60px;
max-width: 800px;
margin-left: auto;
@ikhsanalatsary
ikhsanalatsary / capitalize.dart
Created Dec 19, 2019
Capitalize extension dart
View capitalize.dart
String _capitalize(String str) {
if (str == null) return '';
return '${str[0].toUpperCase() + str.substring(1)}';
}
extension StringUtil on String {
String capitalize() {
return _capitalize(this);
}
View watchman_install.sh
#!/bin/bash
# check m4 already installed
whereis m4
# install automake
sudo apt install automake
# install pkg-config
sudo apt install pkg-config
# install watchman
git clone https://github.com/facebook/watchman.git
View GitEye_install.sh
#!/bin/bash
mkdir /tmp/GitEye
sudo unzip -d /tmp/GitEye ~/Downloads/GitEye*.zip
sudo chown -R root:root /tmp/GitEye
sudo mv /tmp/GitEye /opt/GitEye
sudo ln -s /opt/GitEye/GitEye /usr/local/bin/GitEye
sudo rm -rf /tmp/GitEye
#Create a Desktop Entry
@ikhsanalatsary
ikhsanalatsary / run.sh
Created Oct 25, 2019
Couldn't set up Steam data - please contact technical support
View run.sh
mv ~/.steam/steam/* ~/.local/share/Steam/
rmdir ~/.steam/steam
ln -s ../.local/share/Steam ~/.steam/steam
rm -rf ~/.steam/bin
View user_auth.rb
def auth
user = User.find_by(username: params[:username])
if user&.check_password(params[:password])
render json: user
else
render json: { errors: ['wrong username or password'] }, status: :unauthorized
end
end
View AppDelegate.swift
//
// AppDelegate.swift
// ReactNativeSwift
//
// Created by Gabriel Lai on 26/8/18.
// Copyright © 2018 Facebook. All rights reserved.
//
import UIKit
@ikhsanalatsary
ikhsanalatsary / ReactNativeSwift-Bridging-Header.h
Created Sep 29, 2018
Import Codepush into Bridging Header
View ReactNativeSwift-Bridging-Header.h
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <CodePush/CodePush.h>
View gist:819fd94c4cc32950831aa02472641dc4

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
View ReactNativeSwift-Bridging-Header.h
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
You can’t perform that action at this time.