Skip to content

Instantly share code, notes, and snippets.

📱
on Xcode

lapulapu laprasdrum

📱
on Xcode
Block or report user

Report or block laprasdrum

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
@laprasdrum
laprasdrum / iOS12.1Jailbreak.md
Last active Dec 29, 2019
iOS12 jailbreak -> layout check via cyrun
View iOS12.1Jailbreak.md
View TextFieldShakenErrorViewController.swift
import UIKit
class ViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var textField: UITextField!
@IBOutlet weak var label: UILabel!
enum Placeholder {
case normal, empty
View cVimrc
"Settings
let scrolltep = 60
let fullpagescrollpercent = 100
"set nohud
set autohidecursor
"set noinsertmappings
set nosmoothscroll
let blacklists = ["https://magic-pod.com/*", "https://miro.com/app/*", "https://web.omnifocus.com/*", "https://developer.apple.com/*", "https://www.youtube.com/*", "https://*.1password.com", "https://console.*.google.com/*", "https://*.slack.com/*", "https://kanbanflow.com/*", "https://mail.google.com/*", "https://inbox.google.com/*", "https://trello.com/*", "https://calendar.google.com/*", "https://workflowy.com/*", "https://realtimeboard.com/*", "https://app.zeplin.io/*", "https://script.google.com/*"]
let mapleader = ","
"let locale = "jp"
View 41_Maps
package main
import (
"code.google.com/p/go-tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
seperate := strings.Split(s, " ")
result := make(map[string]int)
View 48_complex_cube_roots
package main
import (
"fmt"
"math/cmplx"
)
func Cbrt(x complex128) complex128 {
var z complex128 = 1.0
for {
@laprasdrum
laprasdrum / SpongyCastleSample.java
Created Apr 19, 2014
convert X.509 certificate into PEM-formatted file with SpongyCastle
View SpongyCastleSample.java
static {
Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
View accelerometerLog1
@interface HogeViewController : UIViewController <UIAccelerometerDelegate>{
...
@laprasdrum
laprasdrum / 2dimension_array
Created Apr 23, 2013
2 dimension array with range check
View 2dimension_array
#include <iostream>
using namespace std;
class safetyArray {
char **array_;
int row_size_;
int column_size_;
public:
safetyArray(int row_size, int column_size);
@laprasdrum
laprasdrum / Blockdiag Error Code(class)
Last active Dec 15, 2015
Error code for blockdiag with class definition
View Blockdiag Error Code(class)
blockdiag {
default_fontsize = 18;
orientation = portrait;
class page [shape = "roundedbox",textcolor = #ffffff,color = #1f497d];
class popup [shape = "roundedbox",textcolor = #ffffff,color = #4bacc7];
class condition[shape = "diamond",textcolor = #000000];
// node description
a [class = "page", label = "TOP\nhogehoge"];
d [class = "popup"];
@laprasdrum
laprasdrum / cdIphoneSimulator
Created Nov 23, 2012
iPhone SimulatorのPath忘れる自分のためのスクリプト
View cdIphoneSimulator
#!/bin/sh
cd ~/Library/Application\ Support/iPhone\ Simulator/
You can’t perform that action at this time.